pub struct State<S>(pub Rc<S>);Tuple Fields§
§0: Rc<S>Trait Implementations§
Source§impl<S> FromContext<RequestContext<S>> for State<S>
impl<S> FromContext<RequestContext<S>> for State<S>
type Error = !
fn from_context( context: &RequestContext<S>, ) -> Result<State<S>, <State<S> as FromContext<RequestContext<S>>>::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = !>,
Source§impl<D, S> FromContext<ResponseContext<D, S>> for State<S>
impl<D, S> FromContext<ResponseContext<D, S>> for State<S>
type Error = !
fn from_context( context: &ResponseContext<D, S>, ) -> Result<State<S>, <State<S> as FromContext<ResponseContext<D, S>>>::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = !>,
Auto Trait Implementations§
impl<S> !Send for State<S>
impl<S> !Sync for State<S>
impl<S> Freeze for State<S>
impl<S> RefUnwindSafe for State<S>where
Rc<S>: RefUnwindSafe,
impl<S> Unpin for State<S>
impl<S> UnsafeUnpin for State<S>where
Rc<S>: UnsafeUnpin,
impl<S> UnwindSafe for State<S>where
Rc<S>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
Source§impl<C, T> FromContextOnce<C, Repeat> for Twhere
T: for<'c> FromContext<C> + 'c,
impl<C, T> FromContextOnce<C, Repeat> for Twhere
T: for<'c> FromContext<C> + 'c,
type Error = <T as FromContext<C>>::Error
type Future<'c> = Ready<Result<T, <T as FromContextOnce<C, Repeat>>::Error>> where C: 'c, T: 'c
fn from_context_once( context: Exclusive<'_, C>, ) -> <T as FromContextOnce<C, Repeat>>::Future<'_>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more