Trait VolumeExt

Source
pub trait VolumeExt: 'static {
Show 17 methods // Required methods fn can_eject(&self) -> bool; fn can_mount(&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, ); fn enumerate_identifiers(&self) -> Vec<GString>; fn get_activation_root(&self) -> Option<File>; fn get_drive(&self) -> Option<Drive>; fn get_icon(&self) -> Option<Icon>; fn get_identifier(&self, kind: &str) -> Option<GString>; fn get_mount(&self) -> Option<Mount>; fn get_name(&self) -> Option<GString>; fn get_sort_key(&self) -> Option<GString>; fn get_symbolic_icon(&self) -> Option<Icon>; fn get_uuid(&self) -> Option<GString>; fn mount<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>( &self, flags: MountMountFlags, mount_operation: Option<&P>, cancellable: Option<&Q>, callback: R, ); fn should_automount(&self) -> bool; fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_removed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}

Required Methods§

Source

fn can_eject(&self) -> bool

Source

fn can_mount(&self) -> bool

Source

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, )

Source

fn enumerate_identifiers(&self) -> Vec<GString>

Source

fn get_activation_root(&self) -> Option<File>

Source

fn get_drive(&self) -> Option<Drive>

Source

fn get_icon(&self) -> Option<Icon>

Source

fn get_identifier(&self, kind: &str) -> Option<GString>

Source

fn get_mount(&self) -> Option<Mount>

Source

fn get_name(&self) -> Option<GString>

Source

fn get_sort_key(&self) -> Option<GString>

Source

fn get_symbolic_icon(&self) -> Option<Icon>

Source

fn get_uuid(&self) -> Option<GString>

Source

fn mount<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>( &self, flags: MountMountFlags, mount_operation: Option<&P>, cancellable: Option<&Q>, callback: R, )

Source

fn should_automount(&self) -> bool

Source

fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_removed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Volume>> VolumeExt for O