Trait ux::prelude::VolumeExt [−]
pub trait VolumeExt: 'static {
Show methods
pub fn can_eject(&self) -> bool;
pub fn can_mount(&self) -> bool;
pub fn eject_with_operation<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send;
pub fn eject_with_operation_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
where
P: 'static + IsA<MountOperation> + Clone;
pub fn enumerate_identifiers(&self) -> Vec<GString, Global>;
pub fn get_activation_root(&self) -> Option<File>;
pub fn get_drive(&self) -> Option<Drive>;
pub fn get_icon(&self) -> Option<Icon>;
pub fn get_identifier(&self, kind: &str) -> Option<GString>;
pub fn get_mount(&self) -> Option<Mount>;
pub fn get_name(&self) -> Option<GString>;
pub fn get_sort_key(&self) -> Option<GString>;
pub fn get_symbolic_icon(&self) -> Option<Icon>;
pub fn get_uuid(&self) -> Option<GString>;
pub fn mount<P, Q, R>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send;
pub fn mount_future<P>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
where
P: 'static + IsA<MountOperation> + Clone;
pub fn should_automount(&self) -> bool;
pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_removed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self);
}Required methods
pub fn can_eject(&self) -> bool
pub fn can_mount(&self) -> bool
pub fn eject_with_operation<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
pub fn eject_with_operation_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
pub fn enumerate_identifiers(&self) -> Vec<GString, Global>
pub fn get_activation_root(&self) -> Option<File>
pub fn get_drive(&self) -> Option<Drive>
pub fn get_icon(&self) -> Option<Icon>
pub fn get_identifier(&self, kind: &str) -> Option<GString>
pub fn get_mount(&self) -> Option<Mount>
pub fn get_name(&self) -> Option<GString>
pub fn get_sort_key(&self) -> Option<GString>
pub fn get_symbolic_icon(&self) -> Option<Icon>
pub fn get_uuid(&self) -> Option<GString>
pub fn mount<P, Q, R>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
pub fn mount_future<P>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
pub fn should_automount(&self) -> bool
pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
pub fn connect_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
Implementors
impl<O> VolumeExt for O where
O: IsA<Volume>,
O: IsA<Volume>,
pub fn can_eject(&self) -> bool
pub fn can_mount(&self) -> bool
pub fn eject_with_operation<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
pub fn eject_with_operation_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
pub fn enumerate_identifiers(&self) -> Vec<GString, Global>
pub fn get_activation_root(&self) -> Option<File>
pub fn get_drive(&self) -> Option<Drive>
pub fn get_icon(&self) -> Option<Icon>
pub fn get_identifier(&self, kind: &str) -> Option<GString>
pub fn get_mount(&self) -> Option<Mount>
pub fn get_name(&self) -> Option<GString>
pub fn get_sort_key(&self) -> Option<GString>
pub fn get_symbolic_icon(&self) -> Option<Icon>
pub fn get_uuid(&self) -> Option<GString>
pub fn mount<P, Q, R>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
pub fn mount_future<P>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
pub fn should_automount(&self) -> bool
pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_removed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),