pub enum UserState<T> {
HaveSession(T),
NoSession,
NoCookie,
}Expand description
Indicate User state
HaveSession’sTcontain user Data
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UserState<T>where
T: Freeze,
impl<T> RefUnwindSafe for UserState<T>where
T: RefUnwindSafe,
impl<T> Send for UserState<T>where
T: Send,
impl<T> Sync for UserState<T>where
T: Sync,
impl<T> Unpin for UserState<T>where
T: Unpin,
impl<T> UnwindSafe for UserState<T>where
T: 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