pub struct IntoHandlerOnce<H, P, T> { /* private fields */ }Expand description
Wrapper that converts a function into a handler.
Implementations§
Source§impl<H, P, T> IntoHandlerOnce<H, P, T>where
H: HandlerFnOnce<P, T>,
impl<H, P, T> IntoHandlerOnce<H, P, T>where
H: HandlerFnOnce<P, T>,
Trait Implementations§
Source§impl<H: Clone, P: Clone, T: Clone> Clone for IntoHandlerOnce<H, P, T>
impl<H: Clone, P: Clone, T: Clone> Clone for IntoHandlerOnce<H, P, T>
Source§fn clone(&self) -> IntoHandlerOnce<H, P, T>
fn clone(&self) -> IntoHandlerOnce<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> HandlerOnce<T> for IntoHandlerOnce<H, P, T>where
H: HandlerFnOnce<P, T>,
P: 'static,
T: 'static,
impl<H, P, T> HandlerOnce<T> for IntoHandlerOnce<H, P, T>where
H: HandlerFnOnce<P, T>,
P: 'static,
T: 'static,
Source§fn handle(self, env: &Environment) -> T
fn handle(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 IntoHandlerOnce<H, P, T>where
H: Freeze,
impl<H, P, T> RefUnwindSafe for IntoHandlerOnce<H, P, T>
impl<H, P, T> Send for IntoHandlerOnce<H, P, T>
impl<H, P, T> Sync for IntoHandlerOnce<H, P, T>
impl<H, P, T> Unpin for IntoHandlerOnce<H, P, T>
impl<H, P, T> UnwindSafe for IntoHandlerOnce<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