Trait gio::prelude::VolumeMonitorExt
source · pub trait VolumeMonitorExt: IsA<VolumeMonitor> + Sealed + 'static {
Show 17 methods
// Provided methods
fn connected_drives(&self) -> Vec<Drive> { ... }
fn mount_for_uuid(&self, uuid: &str) -> Option<Mount> { ... }
fn mounts(&self) -> Vec<Mount> { ... }
fn volume_for_uuid(&self, uuid: &str) -> Option<Volume> { ... }
fn volumes(&self) -> Vec<Volume> { ... }
fn connect_drive_changed<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_drive_connected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_drive_disconnected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_drive_eject_button<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_drive_stop_button<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mount_added<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mount_changed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mount_pre_unmount<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mount_removed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_volume_added<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_volume_changed<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_volume_removed<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn connected_drives(&self) -> Vec<Drive>
fn connected_drives(&self) -> Vec<Drive>
sourcefn mount_for_uuid(&self, uuid: &str) -> Option<Mount>
fn mount_for_uuid(&self, uuid: &str) -> Option<Mount>
sourcefn volume_for_uuid(&self, uuid: &str) -> Option<Volume>
fn volume_for_uuid(&self, uuid: &str) -> Option<Volume>
sourcefn connect_drive_changed<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drive_changed<F: Fn(&Self, &Drive) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_drive_connected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drive_connected<F: Fn(&Self, &Drive) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_drive_disconnected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_drive_disconnected<F: Fn(&Self, &Drive) + 'static>( &self, f: F ) -> SignalHandlerId
Emitted when the eject button is pressed on drive
.
drive
the drive where the eject button was pressed
sourcefn connect_mount_added<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_mount_added<F: Fn(&Self, &Mount) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_mount_changed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_mount_changed<F: Fn(&Self, &Mount) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_mount_pre_unmount<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_mount_pre_unmount<F: Fn(&Self, &Mount) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_mount_removed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_mount_removed<F: Fn(&Self, &Mount) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_volume_added<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_volume_added<F: Fn(&Self, &Volume) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_volume_changed<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_volume_changed<F: Fn(&Self, &Volume) + 'static>( &self, f: F ) -> SignalHandlerId
sourcefn connect_volume_removed<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_volume_removed<F: Fn(&Self, &Volume) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.