pub enum AuthError {
MissingField(String),
Io {
path: Option<PathBuf>,
source: Error,
},
Json {
path: Option<PathBuf>,
source: Error,
},
TokenProvider(String),
LockTimeout,
EmptyWriteRefused,
VendorRejected {
status: u16,
summary: String,
},
CredentialStoreStale {
path: PathBuf,
detail: String,
},
}Expand description
Failure from credential load, refresh, or fail-closed write-back.
Variants§
MissingField(String)
A required field or credential source is missing.
Io
Filesystem read or write failed.
Json
JSON parse or serialize failed.
TokenProvider(String)
Provider construction or refresh failed.
LockTimeout
Advisory file lock was not acquired in time.
EmptyWriteRefused
Write-back refused an empty access token (or a non-object store).
VendorRejected
Token endpoint rejected the refresh.
Fields
CredentialStoreStale
Refresh is cached in memory, but the credential file was not updated.
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ProfileError> for AuthError
impl From<ProfileError> for AuthError
Source§fn from(err: ProfileError) -> Self
fn from(err: ProfileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthError
impl !UnwindSafe for AuthError
impl Forget for AuthError
impl Freeze for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
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