pub struct User<U: Clone, Sess>(pub U, pub PhantomData<Sess>);Tuple Fields§
§0: U§1: PhantomData<Sess>Trait Implementations§
Source§impl<S, U, Sess> FromRequestParts<S> for User<U, Sess>
impl<S, U, Sess> FromRequestParts<S> for User<U, Sess>
Source§type Rejection = (StatusCode, &'static str)
type Rejection = (StatusCode, &'static str)
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<U, Sess> Freeze for User<U, Sess>where
U: Freeze,
impl<U, Sess> RefUnwindSafe for User<U, Sess>where
U: RefUnwindSafe,
Sess: RefUnwindSafe,
impl<U, Sess> Send for User<U, Sess>
impl<U, Sess> Sync for User<U, Sess>
impl<U, Sess> Unpin for User<U, Sess>
impl<U, Sess> UnwindSafe for User<U, Sess>where
U: UnwindSafe,
Sess: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.