pub struct StateKey(/* private fields */);
Expand description
an extractor type wrapping around Key hinting itself can be extracted from application state. See App::with_state for compile time state management.
Implementations§
Trait Implementations§
Source§impl<'a, 'r, C, B> FromRequest<'a, WebContext<'r, C, B>> for StateKeywhere
C: Borrow<Self>,
impl<'a, 'r, C, B> FromRequest<'a, WebContext<'r, C, B>> for StateKeywhere
C: Borrow<Self>,
Auto Trait Implementations§
impl Freeze for StateKey
impl RefUnwindSafe for StateKey
impl Send for StateKey
impl Sync for StateKey
impl Unpin for StateKey
impl UnwindSafe for StateKey
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