[][src]Trait gio::VolumeExt

pub trait VolumeExt: 'static {
    fn can_eject(&self) -> bool;
fn can_mount(&self) -> bool;
fn eject_with_operation<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountUnmountFlags,
        mount_operation: Q,
        cancellable: S,
        callback: T
    );
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<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: MountMountFlags,
        mount_operation: Q,
        cancellable: S,
        callback: T
    );
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

fn can_eject(&self) -> bool

fn can_mount(&self) -> bool

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

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<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    flags: MountMountFlags,
    mount_operation: Q,
    cancellable: S,
    callback: T
)

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

Loading content...

Implementors

impl<O: IsA<Volume>> VolumeExt for O[src]

Loading content...