pub trait MountExt: 'static {
Show 26 methods
fn can_eject(&self) -> bool;
fn can_unmount(&self) -> bool;
fn eject_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn eject_with_operation_future(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn default_location(&self) -> File;
fn drive(&self) -> Option<Drive>;
fn icon(&self) -> Icon;
fn name(&self) -> GString;
fn root(&self) -> File;
fn sort_key(&self) -> Option<GString>;
fn symbolic_icon(&self) -> Icon;
fn uuid(&self) -> Option<GString>;
fn volume(&self) -> Option<Volume>;
fn guess_content_type<P: FnOnce(Result<Vec<GString>, Error>) + 'static>(
&self,
force_rescan: bool,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn guess_content_type_future(
&self,
force_rescan: bool
) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>;
fn guess_content_type_sync(
&self,
force_rescan: bool,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<Vec<GString>, Error>;
fn is_shadowed(&self) -> bool;
fn remount<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn remount_future(
&self,
flags: MountMountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn shadow(&self);
fn unmount_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn unmount_with_operation_future(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn unshadow(&self);
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_pre_unmount<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_unmounted<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
Required Methods
source
fn can_unmount(&self) -> bool
sourcefn eject_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
fn eject_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn eject_with_operation_future(
fn eject_with_operation_future(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
source
fn default_location(&self) -> File
source
fn symbolic_icon(&self) -> Icon
sourcefn guess_content_type<P: FnOnce(Result<Vec<GString>, Error>) + 'static>(
fn guess_content_type<P: FnOnce(Result<Vec<GString>, Error>) + 'static>(
&self,
force_rescan: bool,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn guess_content_type_future(
fn guess_content_type_future(
&self,
force_rescan: bool
) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>
sourcefn guess_content_type_sync(
fn guess_content_type_sync(
&self,
force_rescan: bool,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<Vec<GString>, Error>
source
fn is_shadowed(&self) -> bool
sourcefn remount<P: FnOnce(Result<(), Error>) + 'static>(
fn remount<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn remount_future(
fn remount_future(
&self,
flags: MountMountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
sourcefn unmount_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
fn unmount_with_operation<P: FnOnce(Result<(), Error>) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation>>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn unmount_with_operation_future(
fn unmount_with_operation_future(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&impl IsA<MountOperation> + Clone + 'static>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
source
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source
fn connect_pre_unmount<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source