[][src]Trait gio::prelude::MountExt

pub trait MountExt: 'static {
    fn can_eject(&self) -> bool;
fn can_unmount(&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 eject_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn get_default_location(&self) -> Option<File>;
fn get_drive(&self) -> Option<Drive>;
fn get_icon(&self) -> Option<Icon>;
fn get_name(&self) -> Option<GString>;
fn get_root(&self) -> Option<File>;
fn get_sort_key(&self) -> Option<GString>;
fn get_symbolic_icon(&self) -> Option<Icon>;
fn get_uuid(&self) -> Option<GString>;
fn get_volume(&self) -> Option<Volume>;
fn guess_content_type<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<GString>, Error>) + Send + 'static>(
        &self,
        force_rescan: bool,
        cancellable: Option<&P>,
        callback: Q
    );
fn guess_content_type_future(
        &self,
        force_rescan: bool
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>;
fn guess_content_type_sync<P: IsA<Cancellable>>(
        &self,
        force_rescan: bool,
        cancellable: Option<&P>
    ) -> Result<Vec<GString>, Error>;
fn is_shadowed(&self) -> bool;
fn remount<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 remount_future<P: IsA<MountOperation> + Clone + 'static>(
        &self,
        flags: MountMountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn shadow(&self);
fn unmount_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 unmount_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
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

fn can_eject(&self) -> bool

fn can_unmount(&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 eject_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
    &self,
    flags: MountUnmountFlags,
    mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

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

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

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

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

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

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

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

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

fn get_volume(&self) -> Option<Volume>

fn guess_content_type<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<GString>, Error>) + Send + 'static>(
    &self,
    force_rescan: bool,
    cancellable: Option<&P>,
    callback: Q
)

fn guess_content_type_future(
    &self,
    force_rescan: bool
) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>>

fn guess_content_type_sync<P: IsA<Cancellable>>(
    &self,
    force_rescan: bool,
    cancellable: Option<&P>
) -> Result<Vec<GString>, Error>

fn is_shadowed(&self) -> bool

fn remount<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 remount_future<P: IsA<MountOperation> + Clone + 'static>(
    &self,
    flags: MountMountFlags,
    mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

fn shadow(&self)

fn unmount_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 unmount_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
    &self,
    flags: MountUnmountFlags,
    mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

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

Loading content...

Implementors

impl<O: IsA<Mount>> MountExt for O[src]

Loading content...