pub struct WithBody<Parts, Body>(/* private fields */);Expand description
Marker type to distinguish “parts extractors + body extractor” from “all parts extractors” in Handler impls.
Trait Implementations§
Source§impl<F, Fut, Res, B> Handler<WithBody<(), 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> Handler<WithBody<(), 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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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> Handler<WithBody<(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,
Source§impl<F, Fut, Res, T1, T2, T3, T4, T5, T6, B> Handler<WithBody<(T1, T2, T3, T4, T5, T6), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, T6, 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,
T6: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, T3, T4, T5, T6, B> Handler<WithBody<(T1, T2, T3, T4, T5, T6), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, T6, 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,
T6: FromRequestParts + 'static,
B: FromRequest + 'static,
Source§impl<F, Fut, Res, T1, T2, T3, T4, T5, T6, T7, B> Handler<WithBody<(T1, T2, T3, T4, T5, T6, T7), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, 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,
T6: FromRequestParts + 'static,
T7: FromRequestParts + 'static,
B: FromRequest + 'static,
impl<F, Fut, Res, T1, T2, T3, T4, T5, T6, T7, B> Handler<WithBody<(T1, T2, T3, T4, T5, T6, T7), B>> for Fwhere
F: FnOnce(T1, T2, T3, T4, T5, T6, T7, 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,
T6: FromRequestParts + 'static,
T7: FromRequestParts + 'static,
B: FromRequest + 'static,
Auto Trait Implementations§
impl<Parts, Body> Freeze for WithBody<Parts, Body>
impl<Parts, Body> RefUnwindSafe for WithBody<Parts, Body>where
Parts: RefUnwindSafe,
Body: RefUnwindSafe,
impl<Parts, Body> Send for WithBody<Parts, Body>
impl<Parts, Body> Sync for WithBody<Parts, Body>
impl<Parts, Body> Unpin for WithBody<Parts, Body>
impl<Parts, Body> UnsafeUnpin for WithBody<Parts, Body>
impl<Parts, Body> UnwindSafe for WithBody<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