pub struct StrictWithBody<Parts, Body>(/* private fields */);Expand description
Marker for strict handlers with a body extractor.
Trait Implementations§
Source§impl<F, Fut, Res, B> StrictHandler<Res, StrictWithBody<(), B>> for Fwhere
F: FnOnce(B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
B: FromRequest + 'static,
impl<F, Fut, Res, B> StrictHandler<Res, StrictWithBody<(), B>> for Fwhere
F: FnOnce(B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, B> StrictHandler<Res, StrictWithBody<(T1,), B>> for Fwhere
F: FnOnce(T1, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, B> StrictHandler<Res, StrictWithBody<(T1,), B>> for Fwhere
F: FnOnce(T1, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, T2, B> StrictHandler<Res, StrictWithBody<(T1, T2), B>> for Fwhere
F: FnOnce(T1, T2, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, B> StrictHandler<Res, StrictWithBody<(T1, T2), B>> for Fwhere
F: FnOnce(T1, T2, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, T2, T3, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3), B>> for Fwhere
F: FnOnce(T1, T2, T3, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, T3, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3), B>> for Fwhere
F: FnOnce(T1, T2, T3, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, T2, T3, T4, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3, T4), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
T4: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, T3, T4, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3, T4), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
T4: FromRequestParts + 'static,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, T2, T3, T4, T5, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3, T4, T5), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
T4: FromRequestParts + 'static,
T5: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, T3, T4, T5, B> StrictHandler<Res, StrictWithBody<(T1, T2, T3, T4, T5), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, B) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = Res> + Send,
Res: IntoResponse,
T1: FromRequestParts + 'static,
T2: FromRequestParts + 'static,
T3: FromRequestParts + 'static,
T4: FromRequestParts + 'static,
T5: FromRequestParts + 'static,
B: FromRequest + 'static,
Auto Trait Implementations§
impl<Parts, Body> Freeze for StrictWithBody<Parts, Body>
impl<Parts, Body> RefUnwindSafe for StrictWithBody<Parts, Body>where
Parts: RefUnwindSafe,
Body: RefUnwindSafe,
impl<Parts, Body> Send for StrictWithBody<Parts, Body>
impl<Parts, Body> Sync for StrictWithBody<Parts, Body>
impl<Parts, Body> Unpin for StrictWithBody<Parts, Body>
impl<Parts, Body> UnsafeUnpin for StrictWithBody<Parts, Body>
impl<Parts, Body> UnwindSafe for StrictWithBody<Parts, Body>where
Parts: UnwindSafe,
Body: 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