gio::prelude

Trait VolumeExt

Source
pub trait VolumeExt:
    IsA<Volume>
    + Sealed
    + 'static {
Show 19 methods // Provided methods fn can_eject(&self) -> bool { ... } fn can_mount(&self) -> bool { ... } fn eject_with_operation<P: FnOnce(Result<(), Error>) + 'static>( &self, flags: MountUnmountFlags, mount_operation: Option<&impl IsA<MountOperation>>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn eject_with_operation_future( &self, flags: MountUnmountFlags, mount_operation: Option<&(impl IsA<MountOperation> + Clone + 'static)>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } fn enumerate_identifiers(&self) -> Vec<GString> { ... } fn activation_root(&self) -> Option<File> { ... } fn drive(&self) -> Option<Drive> { ... } fn icon(&self) -> Icon { ... } fn identifier(&self, kind: &str) -> Option<GString> { ... } fn get_mount(&self) -> Option<Mount> { ... } fn name(&self) -> GString { ... } fn sort_key(&self) -> Option<GString> { ... } fn symbolic_icon(&self) -> Icon { ... } fn uuid(&self) -> Option<GString> { ... } fn mount<P: FnOnce(Result<(), Error>) + 'static>( &self, flags: MountMountFlags, mount_operation: Option<&impl IsA<MountOperation>>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn mount_future( &self, flags: MountMountFlags, mount_operation: Option<&(impl IsA<MountOperation> + Clone + 'static)>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } 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 { ... }
}

Provided Methods§

Source

fn can_eject(&self) -> bool

Source

fn can_mount(&self) -> bool

Source

fn eject_with_operation<P: FnOnce(Result<(), Error>) + 'static>( &self, flags: MountUnmountFlags, mount_operation: Option<&impl IsA<MountOperation>>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Source

fn eject_with_operation_future( &self, flags: MountUnmountFlags, mount_operation: Option<&(impl IsA<MountOperation> + Clone + 'static)>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

Source

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

Source

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

Source

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

Source

fn icon(&self) -> Icon

Source

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

Source

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

Source

fn name(&self) -> GString

Source

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

Source

fn symbolic_icon(&self) -> Icon

Source

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

Source

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

Source

fn mount_future( &self, flags: MountMountFlags, mount_operation: Option<&(impl IsA<MountOperation> + Clone + 'static)>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

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