pub enum AuthStatus {
Active,
LoginRequired,
}Expand description
Whether the session is usable, for the player to broadcast
Event::LoginRequired / Event::LoginRestored on changes.
Variants§
Active
Requests are sent (refreshing as needed).
LoginRequired
The refresh token was rejected: requests fail with
AuthError::LoginRequired until a new login is found in storage.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
impl Copy for AuthStatus
Source§impl Debug for AuthStatus
impl Debug for AuthStatus
impl Eq for AuthStatus
Source§impl PartialEq for AuthStatus
impl PartialEq for AuthStatus
impl StructuralPartialEq for AuthStatus
Auto Trait Implementations§
impl Freeze for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatus
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatus
impl UnwindSafe for AuthStatus
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