pub struct PermissionRequest { /* private fields */ }
Expand description
Represents an ongoing permission request.
Implementations§
Source§impl PermissionRequest
impl PermissionRequest
Sourcepub fn device_info(&self) -> &DeviceInfo
pub fn device_info(&self) -> &DeviceInfo
Returns a reference of the associated DeviceInfo
which can be cloned.
Sourcepub fn take_response(self) -> Option<bool>
pub fn take_response(self) -> Option<bool>
Takes the EXTRA_PERMISSION_GRANTED
extra from the received result.
This can be called after responsed()
returned true.
Trait Implementations§
Source§impl Debug for PermissionRequest
impl Debug for PermissionRequest
Source§impl Future for PermissionRequest
impl Future for PermissionRequest
Auto Trait Implementations§
impl Freeze for PermissionRequest
impl !RefUnwindSafe for PermissionRequest
impl Send for PermissionRequest
impl Sync for PermissionRequest
impl Unpin for PermissionRequest
impl !UnwindSafe for PermissionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> FutureExt for F
impl<F> FutureExt for F
Source§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more