pub struct IntoHandler<H, P, T> { /* private fields */ }Expand description
Wrapper that converts a function into a handler.
Implementations§
Trait Implementations§
Source§impl<H: Clone, P: Clone, T: Clone> Clone for IntoHandler<H, P, T>
impl<H: Clone, P: Clone, T: Clone> Clone for IntoHandler<H, P, T>
Source§fn clone(&self) -> IntoHandler<H, P, T>
fn clone(&self) -> IntoHandler<H, P, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H, P, T> Handler<T> for IntoHandler<H, P, T>where
H: HandlerFn<P, T>,
P: 'static,
T: 'static,
impl<H, P, T> Handler<T> for IntoHandler<H, P, T>where
H: HandlerFn<P, T>,
P: 'static,
T: 'static,
Source§fn handle(&mut self, env: &Environment) -> T
fn handle(&mut self, env: &Environment) -> T
Processes the environment and returns a value of type T. Read more
Auto Trait Implementations§
impl<H, P, T> Freeze for IntoHandler<H, P, T>where
H: Freeze,
impl<H, P, T> RefUnwindSafe for IntoHandler<H, P, T>
impl<H, P, T> Send for IntoHandler<H, P, T>
impl<H, P, T> Sync for IntoHandler<H, P, T>
impl<H, P, T> Unpin for IntoHandler<H, P, T>
impl<H, P, T> UnwindSafe for IntoHandler<H, P, T>
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