[][src]Trait gio::PermissionExt

pub trait PermissionExt: 'static {
    fn acquire<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<(), Error>;
fn acquire_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        cancellable: Q,
        callback: R
    );
fn get_allowed(&self) -> bool;
fn get_can_acquire(&self) -> bool;
fn get_can_release(&self) -> bool;
fn impl_update(&self, allowed: bool, can_acquire: bool, can_release: bool);
fn release<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<(), Error>;
fn release_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        cancellable: Q,
        callback: R
    );
fn connect_property_allowed_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_can_acquire_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_can_release_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn acquire<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<(), Error>

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

fn get_allowed(&self) -> bool

fn get_can_acquire(&self) -> bool

fn get_can_release(&self) -> bool

fn impl_update(&self, allowed: bool, can_acquire: bool, can_release: bool)

fn release<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<(), Error>

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

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

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

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

Loading content...

Implementors

impl<O: IsA<Permission>> PermissionExt for O[src]

Loading content...