pub enum AuthenticationState {
NotAuthenticated,
AwaitingDeviceCode {
info: DeviceCodeInfo,
started_at: Instant,
},
Authenticated {
token: String,
expires_at: Instant,
connection_string: Option<String>,
},
Failed(String),
}Expand description
Authentication state tracking for the application.
Represents the current authentication status and provides context for ongoing authentication processes like device code flows.
Variants§
NotAuthenticated
No authentication is currently active
AwaitingDeviceCode
Device code authentication is in progress
Fields
§
info: DeviceCodeInfoDevice code information for user interaction
Authenticated
Authentication completed successfully
Fields
Failed(String)
Authentication failed with error message
Trait Implementations§
Source§impl Clone for AuthenticationState
impl Clone for AuthenticationState
Source§fn clone(&self) -> AuthenticationState
fn clone(&self) -> AuthenticationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticationState
impl Debug for AuthenticationState
Source§impl Default for AuthenticationState
impl Default for AuthenticationState
Source§fn default() -> AuthenticationState
fn default() -> AuthenticationState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthenticationState
impl RefUnwindSafe for AuthenticationState
impl Send for AuthenticationState
impl Sync for AuthenticationState
impl Unpin for AuthenticationState
impl UnwindSafe for AuthenticationState
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