[−][src]Trait gio::DriveExt
Required methods
fn can_eject(&self) -> bool
fn can_poll_for_media(&self) -> bool
fn can_start(&self) -> bool
fn can_start_degraded(&self) -> bool
fn can_stop(&self) -> bool
fn eject_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn eject_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn enumerate_identifiers(&self) -> Vec<GString>
fn get_icon(&self) -> Option<Icon>
fn get_identifier(&self, kind: &str) -> Option<GString>
fn get_name(&self) -> Option<GString>
fn get_sort_key(&self) -> Option<GString>
fn get_start_stop_type(&self) -> DriveStartStopType
fn get_symbolic_icon(&self) -> Option<Icon>
fn get_volumes(&self) -> Vec<Volume>
fn has_media(&self) -> bool
fn has_volumes(&self) -> bool
fn is_media_check_automatic(&self) -> bool
fn is_media_removable(&self) -> bool
fn poll_for_media<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
&self,
cancellable: Option<&P>,
callback: Q
)
fn poll_for_media_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn start<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn start_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn stop<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn stop_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_disconnected<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_eject_button<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_stop_button<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Implementors
impl<O: IsA<Drive>> DriveExt for O
[src]
fn can_eject(&self) -> bool
[src]
fn can_poll_for_media(&self) -> bool
[src]
fn can_start(&self) -> bool
[src]
fn can_start_degraded(&self) -> bool
[src]
fn can_stop(&self) -> bool
[src]
fn eject_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn eject_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn enumerate_identifiers(&self) -> Vec<GString>
[src]
fn get_icon(&self) -> Option<Icon>
[src]
fn get_identifier(&self, kind: &str) -> Option<GString>
[src]
fn get_name(&self) -> Option<GString>
[src]
fn get_sort_key(&self) -> Option<GString>
[src]
fn get_start_stop_type(&self) -> DriveStartStopType
[src]
fn get_symbolic_icon(&self) -> Option<Icon>
[src]
fn get_volumes(&self) -> Vec<Volume>
[src]
fn has_media(&self) -> bool
[src]
fn has_volumes(&self) -> bool
[src]
fn is_media_check_automatic(&self) -> bool
[src]
fn is_media_removable(&self) -> bool
[src]
fn poll_for_media<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
cancellable: Option<&P>,
callback: Q
)
fn poll_for_media_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn start<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn start_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: DriveStartFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn stop<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn stop_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>