[][src]Trait gio::prelude::DriveExt

pub trait DriveExt: 'static {
    fn can_eject(&self) -> bool;
fn can_poll_for_media(&self) -> bool;
fn can_start(&self) -> bool;
fn can_start_degraded(&self) -> bool;
fn can_stop(&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_icon(&self) -> Option<Icon>;
fn get_identifier(&self, kind: &str) -> Option<GString>;
fn get_name(&self) -> Option<GString>;
fn get_sort_key(&self) -> Option<GString>;
fn get_start_stop_type(&self) -> DriveStartStopType;
fn get_symbolic_icon(&self) -> Option<Icon>;
fn get_volumes(&self) -> Vec<Volume>;
fn has_media(&self) -> bool;
fn has_volumes(&self) -> bool;
fn is_media_check_automatic(&self) -> bool;
fn is_media_removable(&self) -> bool;
fn poll_for_media<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        cancellable: Q,
        callback: R
    );
fn start<'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: DriveStartFlags,
        mount_operation: Q,
        cancellable: S,
        callback: T
    );
fn stop<'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 connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_disconnected<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_eject_button<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_stop_button<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn can_eject(&self) -> bool

fn can_poll_for_media(&self) -> bool

fn can_start(&self) -> bool

fn can_start_degraded(&self) -> bool

fn can_stop(&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_icon(&self) -> Option<Icon>

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

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

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

fn get_start_stop_type(&self) -> DriveStartStopType

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

fn get_volumes(&self) -> Vec<Volume>

fn has_media(&self) -> bool

fn has_volumes(&self) -> bool

fn is_media_check_automatic(&self) -> bool

fn is_media_removable(&self) -> bool

fn poll_for_media<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    cancellable: Q,
    callback: R
)

fn start<'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: DriveStartFlags,
    mount_operation: Q,
    cancellable: S,
    callback: T
)

fn stop<'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 connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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

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

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

Loading content...

Implementors

impl<O: IsA<Drive>> DriveExt for O[src]

Loading content...