pub enum AuthStorageError {
Read(String),
NotAnObject,
InvalidCredential(String),
ReadOnly,
Write(Error),
LockTimeout(PathBuf),
}Expand description
Errors reading or writing auth.json.
Variants§
Read(String)
The file could not be read or parsed.
NotAnObject
The top level is not an object.
InvalidCredential(String)
An entry has the wrong shape.
ReadOnly
Mutation of a read-only store.
Write(Error)
The file could not be written.
LockTimeout(PathBuf)
Another process held the lock for too long.
Trait Implementations§
Source§impl Debug for AuthStorageError
impl Debug for AuthStorageError
Source§impl Display for AuthStorageError
impl Display for AuthStorageError
Source§impl Error for AuthStorageError
impl Error for AuthStorageError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AuthStorageError
impl !UnwindSafe for AuthStorageError
impl Freeze for AuthStorageError
impl Send for AuthStorageError
impl Sync for AuthStorageError
impl Unpin for AuthStorageError
impl UnsafeUnpin for AuthStorageError
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