#[non_exhaustive]pub enum AuthState {
LoggedIn,
LoggedOut,
Unknown,
}Expand description
Whether an agent has usable credentials.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LoggedIn
The CLI confirmed it is logged in.
LoggedOut
The CLI confirmed it is not.
Unknown
Could not be determined. Either the agent exposes no way to ask, or it answered something unrecognized.
Deliberately distinct from AuthState::LoggedOut: reporting “not
logged in” for an agent that simply cannot be asked would send someone
to re-authenticate a working setup.
Trait Implementations§
impl Copy for AuthState
impl Eq for AuthState
impl StructuralPartialEq for AuthState
Auto Trait Implementations§
impl Freeze for AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnsafeUnpin for AuthState
impl UnwindSafe for AuthState
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