pub struct HandlerWithState<F, S, T, Fut, R>where
F: Fn(State<Arc<S>>, T) -> Fut + Send + Sync,
S: Send + Sync + 'static,
T: DeserializeOwned + Send,
Fut: Future<Output = R> + Send,
R: IntoHandlerResult,{ /* private fields */ }Expand description
Wrapper for handlers that receive injected state and typed args
Implementations§
Source§impl<F, S, T, Fut, R> HandlerWithState<F, S, T, Fut, R>
impl<F, S, T, Fut, R> HandlerWithState<F, S, T, Fut, R>
Trait Implementations§
Source§impl<F, S, T, Fut, R> Handler for HandlerWithState<F, S, T, Fut, R>
impl<F, S, T, Fut, R> Handler for HandlerWithState<F, S, T, Fut, R>
Auto Trait Implementations§
impl<F, S, T, Fut, R> Freeze for HandlerWithState<F, S, T, Fut, R>where
F: Freeze,
impl<F, S, T, Fut, R> RefUnwindSafe for HandlerWithState<F, S, T, Fut, R>where
F: RefUnwindSafe,
impl<F, S, T, Fut, R> Send for HandlerWithState<F, S, T, Fut, R>
impl<F, S, T, Fut, R> Sync for HandlerWithState<F, S, T, Fut, R>
impl<F, S, T, Fut, R> Unpin for HandlerWithState<F, S, T, Fut, R>where
F: Unpin,
impl<F, S, T, Fut, R> UnsafeUnpin for HandlerWithState<F, S, T, Fut, R>where
F: UnsafeUnpin,
impl<F, S, T, Fut, R> UnwindSafe for HandlerWithState<F, S, T, Fut, R>where
F: UnwindSafe,
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