pub enum SisError {
SendRequestError(Error),
CreateClientError(Error),
AuthError,
ParseLoginResultError,
}Expand description
The error type for the Sis struct
Variants§
SendRequestError(Error)
There was an error while sending the request to the server (It can be a network error or a server error)
CreateClientError(Error)
There was an error creating the client that will be used to send the requests
AuthError
The provided username or password is incorrect
ParseLoginResultError
There was an error while parsing the response from the server (Unexpected response)
Trait Implementations§
Source§impl Error for SisError
impl Error for SisError
1.30.0 · 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 IntoFuture for SisError
impl IntoFuture for SisError
Source§type IntoFuture = Ready<<SisError as IntoFuture>::Output>
type IntoFuture = Ready<<SisError as IntoFuture>::Output>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for SisError
impl !RefUnwindSafe for SisError
impl Send for SisError
impl Sync for SisError
impl Unpin for SisError
impl !UnwindSafe for SisError
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