pub struct CallbackHandler<T, F: Fn(&T)> { /* private fields */ }Expand description
A callback-based handler implementation.
This is the typed equivalent of TypedMessageHandler,
but without runtime downcasting overhead.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for CallbackHandler<T, F>
impl<T, F> RefUnwindSafe for CallbackHandler<T, F>
impl<T, F> Send for CallbackHandler<T, F>
impl<T, F> Sync for CallbackHandler<T, F>
impl<T, F> Unpin for CallbackHandler<T, F>
impl<T, F> UnsafeUnpin for CallbackHandler<T, F>
impl<T, F> UnwindSafe for CallbackHandler<T, F>
Blanket Implementations§
impl<T> Allocation for T
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