Trait ux::prelude::MountExt[]

pub trait MountExt: 'static {
Show methods pub fn can_eject(&self) -> bool;
pub fn can_unmount(&self) -> bool;
pub fn eject_with_operation<P, Q, R>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>,
        cancellable: Option<&Q>,
        callback: R
    )
    where
        P: IsA<MountOperation>,
        Q: IsA<Cancellable>,
        R: 'static + FnOnce(Result<(), Error>) + Send
;
pub fn eject_with_operation_future<P>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
    where
        P: 'static + IsA<MountOperation> + Clone
;
pub fn get_default_location(&self) -> Option<File>;
pub fn get_drive(&self) -> Option<Drive>;
pub fn get_icon(&self) -> Option<Icon>;
pub fn get_name(&self) -> Option<GString>;
pub fn get_root(&self) -> Option<File>;
pub fn get_sort_key(&self) -> Option<GString>;
pub fn get_symbolic_icon(&self) -> Option<Icon>;
pub fn get_uuid(&self) -> Option<GString>;
pub fn get_volume(&self) -> Option<Volume>;
pub fn guess_content_type<P, Q>(
        &self,
        force_rescan: bool,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Vec<GString, Global>, Error>) + Send
;
pub fn guess_content_type_future(
        &self,
        force_rescan: bool
    ) -> Pin<Box<dyn Future<Output = Result<Vec<GString, Global>, Error>> + 'static, Global>>;
pub fn guess_content_type_sync<P>(
        &self,
        force_rescan: bool,
        cancellable: Option<&P>
    ) -> Result<Vec<GString, Global>, Error>
    where
        P: IsA<Cancellable>
;
pub fn is_shadowed(&self) -> bool;
pub fn remount<P, Q, R>(
        &self,
        flags: MountMountFlags,
        mount_operation: Option<&P>,
        cancellable: Option<&Q>,
        callback: R
    )
    where
        P: IsA<MountOperation>,
        Q: IsA<Cancellable>,
        R: 'static + FnOnce(Result<(), Error>) + Send
;
pub fn remount_future<P>(
        &self,
        flags: MountMountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
    where
        P: 'static + IsA<MountOperation> + Clone
;
pub fn shadow(&self);
pub fn unmount_with_operation<P, Q, R>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>,
        cancellable: Option<&Q>,
        callback: R
    )
    where
        P: IsA<MountOperation>,
        Q: IsA<Cancellable>,
        R: 'static + FnOnce(Result<(), Error>) + Send
;
pub fn unmount_with_operation_future<P>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Option<&P>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
    where
        P: 'static + IsA<MountOperation> + Clone
;
pub fn unshadow(&self);
pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_pre_unmount<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_unmounted<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

pub fn can_eject(&self) -> bool

pub fn can_unmount(&self) -> bool

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn is_shadowed(&self) -> bool

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

pub fn remount_future<P>(
    &self,
    flags: MountMountFlags,
    mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
    P: 'static + IsA<MountOperation> + Clone

pub fn shadow(&self)

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

pub fn unmount_with_operation_future<P>(
    &self,
    flags: MountUnmountFlags,
    mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
    P: 'static + IsA<MountOperation> + Clone

pub fn unshadow(&self)

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

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

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

Loading content...

Implementors

impl<O> MountExt for O where
    O: IsA<Mount>, 

Loading content...