pub enum SimpleLoginError {
Request(Error, String),
RequestStatusCode {
path: String,
status: StatusCode,
},
ApiErrorResponse {
error: String,
},
BadCredentials,
TokenNotSet,
NeedSudo,
TooManyWrongTries,
DeserializeApiErrorResponse(Error),
DeserializeApiResponse(Error),
}Variants§
Request(Error, String)
RequestStatusCode
ApiErrorResponse
BadCredentials
TokenNotSet
NeedSudo
TooManyWrongTries
DeserializeApiErrorResponse(Error)
DeserializeApiResponse(Error)
Trait Implementations§
Source§impl Debug for SimpleLoginError
impl Debug for SimpleLoginError
Source§impl Display for SimpleLoginError
impl Display for SimpleLoginError
Source§impl Error for SimpleLoginError
impl Error for SimpleLoginError
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 Freeze for SimpleLoginError
impl !RefUnwindSafe for SimpleLoginError
impl Send for SimpleLoginError
impl Sync for SimpleLoginError
impl Unpin for SimpleLoginError
impl UnsafeUnpin for SimpleLoginError
impl !UnwindSafe for SimpleLoginError
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