Trait gio::VolumeMonitorExt
source · [−]pub trait VolumeMonitorExt: 'static {
Show 17 methods
fn get_connected_drives(&self) -> Vec<Drive>;
fn get_mount_for_uuid(&self, uuid: &str) -> Option<Mount>;
fn get_mounts(&self) -> Vec<Mount>;
fn get_volume_for_uuid(&self, uuid: &str) -> Option<Volume>;
fn get_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;
}Required Methods
source
fn get_connected_drives(&self) -> Vec<Drive>
source
fn get_mount_for_uuid(&self, uuid: &str) -> Option<Mount>
source
fn get_mounts(&self) -> Vec<Mount>
source
fn get_volume_for_uuid(&self, uuid: &str) -> Option<Volume>
source
fn get_volumes(&self) -> Vec<Volume>
sourcefn connect_drive_changed<F: Fn(&Self, &Drive) + 'static>(
fn connect_drive_changed<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_drive_connected<F: Fn(&Self, &Drive) + 'static>(
fn connect_drive_connected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_drive_disconnected<F: Fn(&Self, &Drive) + 'static>(
fn connect_drive_disconnected<F: Fn(&Self, &Drive) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_mount_added<F: Fn(&Self, &Mount) + 'static>(
fn connect_mount_added<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_mount_changed<F: Fn(&Self, &Mount) + 'static>(
fn connect_mount_changed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_mount_pre_unmount<F: Fn(&Self, &Mount) + 'static>(
fn connect_mount_pre_unmount<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_mount_removed<F: Fn(&Self, &Mount) + 'static>(
fn connect_mount_removed<F: Fn(&Self, &Mount) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_volume_added<F: Fn(&Self, &Volume) + 'static>(
fn connect_volume_added<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_volume_changed<F: Fn(&Self, &Volume) + 'static>(
fn connect_volume_changed<F: Fn(&Self, &Volume) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_volume_removed<F: Fn(&Self, &Volume) + 'static>(