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