Enum ibdl_common::auth::AuthError
source · pub enum AuthError {
InvalidLogin,
ConnectionError(Error),
ConfigIOError {
source: Error,
},
ConfigEncodeError,
}Variants
InvalidLogin
Indicates that login credentials are incorrect.
ConnectionError(Error)
Indicates errors while connecting or parsing the response from the imageboard.
ConfigIOError
Fields
source: ErrorIndicates any unrecoverable IO error when trying to read the auth config file.
ConfigEncodeError
Indicates a failed attempt to serialize the config file to bincode.
Trait Implementations
sourceimpl Error for AuthError
impl Error for AuthError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn 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 AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl !UnwindSafe for AuthError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more