pub struct Handler<'b, F: Callback> { /* private fields */ }Expand description
Lifetime manager for Callback, will uninstall the callback when dropped.
Internally hold a Receiver (accessed by Self::receiver) to receive output of callback from visa.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'b, F> Freeze for Handler<'b, F>
impl<'b, F> RefUnwindSafe for Handler<'b, F>where
F: RefUnwindSafe,
impl<'b, F> !Send for Handler<'b, F>
impl<'b, F> !Sync for Handler<'b, F>
impl<'b, F> Unpin for Handler<'b, F>
impl<'b, F> UnwindSafe for Handler<'b, F>where
F: RefUnwindSafe,
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