pub struct IntoHandlerWithState<H, P, T, S> { /* private fields */ }Expand description
A wrapper that allows a handler function with state to be used as a regular handler.
Implementations§
Source§impl<H, P, T, S> IntoHandlerWithState<H, P, T, S>where
H: HandlerFnWithState<P, T, S>,
S: 'static + Clone,
impl<H, P, T, S> IntoHandlerWithState<H, P, T, S>where
H: HandlerFnWithState<P, T, S>,
S: 'static + Clone,
Trait Implementations§
Source§impl<H, P, T, S> Handler<T> for IntoHandlerWithState<H, P, T, S>where
H: HandlerFnWithState<P, T, S>,
S: 'static + Clone,
T: 'static,
P: 'static,
impl<H, P, T, S> Handler<T> for IntoHandlerWithState<H, P, T, S>where
H: HandlerFnWithState<P, T, S>,
S: 'static + Clone,
T: 'static,
P: '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, S> Freeze for IntoHandlerWithState<H, P, T, S>
impl<H, P, T, S> RefUnwindSafe for IntoHandlerWithState<H, P, T, S>
impl<H, P, T, S> Send for IntoHandlerWithState<H, P, T, S>
impl<H, P, T, S> Sync for IntoHandlerWithState<H, P, T, S>
impl<H, P, T, S> Unpin for IntoHandlerWithState<H, P, T, S>
impl<H, P, T, S> UnwindSafe for IntoHandlerWithState<H, P, T, S>
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