pub struct Handler<'t, F, U>(/* private fields */);Expand description
Pinned wrapper around a function and user data.
On drop, automatically resets system registered update handler.
Trait Implementations§
Auto Trait Implementations§
impl<'t, F, U> Freeze for Handler<'t, F, U>
impl<'t, F, U> RefUnwindSafe for Handler<'t, F, U>where
F: RefUnwindSafe,
U: RefUnwindSafe,
impl<'t, F, U> Send for Handler<'t, F, U>where
F: Send,
U: Send,
impl<'t, F, U> Sync for Handler<'t, F, U>where
F: Sync,
U: Sync,
impl<'t, F, U> Unpin for Handler<'t, F, U>
impl<'t, F, U> UnwindSafe for Handler<'t, F, U>where
F: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes