pub struct AsyncCxFnHandler2<F, T1, T2> { /* private fields */ }Expand description
Wrapper for async handlers with 2 extractors.
Implementations§
Source§impl<F, T1, T2> AsyncCxFnHandler2<F, T1, T2>
impl<F, T1, T2> AsyncCxFnHandler2<F, T1, T2>
Trait Implementations§
Source§impl<F, Fut, Res, T1, T2> Handler for AsyncCxFnHandler2<F, T1, T2>where
F: Fn(Cx, T1, T2) -> Fut + Send + Sync + 'static,
T1: FromRequestParts + Send + Sync + 'static,
T2: FromRequest + Send + Sync + 'static,
Fut: Future<Output = Res>,
Res: IntoResponse,
impl<F, Fut, Res, T1, T2> Handler for AsyncCxFnHandler2<F, T1, T2>where
F: Fn(Cx, T1, T2) -> Fut + Send + Sync + 'static,
T1: FromRequestParts + Send + Sync + 'static,
T2: FromRequest + Send + Sync + 'static,
Fut: Future<Output = Res>,
Res: IntoResponse,
Auto Trait Implementations§
impl<F, T1, T2> Freeze for AsyncCxFnHandler2<F, T1, T2>where
F: Freeze,
impl<F, T1, T2> RefUnwindSafe for AsyncCxFnHandler2<F, T1, T2>
impl<F, T1, T2> Send for AsyncCxFnHandler2<F, T1, T2>
impl<F, T1, T2> Sync for AsyncCxFnHandler2<F, T1, T2>
impl<F, T1, T2> Unpin for AsyncCxFnHandler2<F, T1, T2>
impl<F, T1, T2> UnsafeUnpin for AsyncCxFnHandler2<F, T1, T2>where
F: UnsafeUnpin,
impl<F, T1, T2> UnwindSafe for AsyncCxFnHandler2<F, T1, T2>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).