Trait gio::MountExt[][src]

pub trait MountExt: Sized {
    fn can_eject(&self) -> bool;
fn can_unmount(&self) -> bool;
fn eject<'a, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountUnmountFlags,
        cancellable: P,
        callback: Q
    );
fn eject_with_operation<'a, 'b, P: Into<Option<&'a MountOperation>>, Q: Into<Option<&'b Cancellable>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: P,
        cancellable: Q,
        callback: R
    );
fn get_default_location(&self) -> Option<File>;
fn get_drive(&self) -> Option<Drive>;
fn get_icon(&self) -> Option<Icon>;
fn get_name(&self) -> Option<String>;
fn get_root(&self) -> Option<File>;
fn get_sort_key(&self) -> Option<String>;
fn get_symbolic_icon(&self) -> Option<Icon>;
fn get_uuid(&self) -> Option<String>;
fn get_volume(&self) -> Option<Volume>;
fn guess_content_type<'a, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<Vec<String>, Error>) + Send + 'static>(
        &self,
        force_rescan: bool,
        cancellable: P,
        callback: Q
    );
fn guess_content_type_sync<'a, P: Into<Option<&'a Cancellable>>>(
        &self,
        force_rescan: bool,
        cancellable: P
    ) -> Result<Vec<String>, Error>;
fn is_shadowed(&self) -> bool;
fn remount<'a, 'b, P: Into<Option<&'a MountOperation>>, Q: Into<Option<&'b Cancellable>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountMountFlags,
        mount_operation: P,
        cancellable: Q,
        callback: R
    );
fn shadow(&self);
fn unmount<'a, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountUnmountFlags,
        cancellable: P,
        callback: Q
    );
fn unmount_with_operation<'a, 'b, P: Into<Option<&'a MountOperation>>, Q: Into<Option<&'b Cancellable>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: P,
        cancellable: Q,
        callback: R
    );
fn unshadow(&self);
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_pre_unmount<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_unmounted<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; }

Required Methods

Deprecated

Deprecated

Implementors