[−][src]Trait gio::prelude::PermissionExt
Required methods
fn acquire<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn acquire_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
&self,
cancellable: Option<&P>,
callback: Q
)
fn acquire_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
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<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn release_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
&self,
cancellable: Option<&P>,
callback: Q
)
fn release_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn connect_property_allowed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_can_acquire_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_can_release_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Permission>> PermissionExt for O
[src]
fn acquire<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn acquire_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
cancellable: Option<&P>,
callback: Q
)
fn acquire_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn get_allowed(&self) -> bool
[src]
fn get_can_acquire(&self) -> bool
[src]
fn get_can_release(&self) -> bool
[src]
fn impl_update(&self, allowed: bool, can_acquire: bool, can_release: bool)
[src]
fn release<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn release_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
cancellable: Option<&P>,
callback: Q
)
fn release_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn connect_property_allowed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_can_acquire_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_can_release_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId