pub enum AuthStatus<User> {
Loading,
Authenticated(User),
Unauthenticated,
}Variants§
Implementations§
Source§impl<User> AuthStatus<User>
impl<User> AuthStatus<User>
Trait Implementations§
Source§impl<User: Clone> Clone for AuthStatus<User>
impl<User: Clone> Clone for AuthStatus<User>
Source§fn clone(&self) -> AuthStatus<User>
fn clone(&self) -> AuthStatus<User>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<User: Debug> Debug for AuthStatus<User>
impl<User: Debug> Debug for AuthStatus<User>
Source§impl<User> Default for AuthStatus<User>
impl<User> Default for AuthStatus<User>
Source§fn default() -> AuthStatus<User>
fn default() -> AuthStatus<User>
Returns the “default value” for a type. Read more
impl<User: Eq> Eq for AuthStatus<User>
Source§impl<User: PartialEq> PartialEq for AuthStatus<User>
impl<User: PartialEq> PartialEq for AuthStatus<User>
impl<User: PartialEq> StructuralPartialEq for AuthStatus<User>
Auto Trait Implementations§
impl<User> Freeze for AuthStatus<User>where
User: Freeze,
impl<User> RefUnwindSafe for AuthStatus<User>where
User: RefUnwindSafe,
impl<User> Send for AuthStatus<User>where
User: Send,
impl<User> Sync for AuthStatus<User>where
User: Sync,
impl<User> Unpin for AuthStatus<User>where
User: Unpin,
impl<User> UnsafeUnpin for AuthStatus<User>where
User: UnsafeUnpin,
impl<User> UnwindSafe for AuthStatus<User>where
User: 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