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>where
C: BorrowState<T>,
T: Clone,
impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for StateOwn<T>where
C: BorrowState<T>,
T: Clone,
Auto Trait Implementations§
impl<S> Freeze for StateOwn<S>where
S: Freeze,
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