pub struct Deferral(/* private fields */);Expand description
Keeps an event request pending so it can be resolved after the handler
returns. Obtain one from an event’s defer method (for example
PermissionRequestedArgs::defer) and call complete
once the decision has been made. Dropping the deferral completes it
automatically.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Deferral
impl !Sync for Deferral
impl Freeze for Deferral
impl RefUnwindSafe for Deferral
impl Unpin for Deferral
impl UnsafeUnpin for Deferral
impl UnwindSafe for Deferral
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