pub struct StateOwn<S>(pub S);Expand description
App state extractor for owned value. S type must be the same with the type passed to App::with_xxx_state(S).
Tuple Fields§
§0: STrait Implementations§
source§impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for StateOwn<T>
impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for StateOwn<T>
Auto Trait Implementations§
impl<S> RefUnwindSafe for StateOwn<S>where
S: RefUnwindSafe,
impl<S> Send for StateOwn<S>where
S: Send,
impl<S> Sync for StateOwn<S>where
S: Sync,
impl<S> Unpin for StateOwn<S>where
S: Unpin,
impl<S> UnwindSafe for StateOwn<S>where
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