#[non_exhaustive]pub enum IdkollenError {
Http(Error),
Api {
status: u16,
message: String,
},
Deserialization(Error<Error>),
}Expand description
Errors returned by all client operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Http(Error)
Network-level error (connection refused, TLS failure, etc.).
Api
The server returned a non-2xx response.
Deserialization(Error<Error>)
The server returned an unexpected JSON shape.
Trait Implementations§
Source§impl Debug for IdkollenError
impl Debug for IdkollenError
Source§impl Display for IdkollenError
impl Display for IdkollenError
Source§impl Error for IdkollenError
impl Error for IdkollenError
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<Error> for IdkollenError
impl From<Error> for IdkollenError
Source§impl From<IdkollenError> for WaitError
impl From<IdkollenError> for WaitError
Source§fn from(source: IdkollenError) -> Self
fn from(source: IdkollenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdkollenError
impl !RefUnwindSafe for IdkollenError
impl Send for IdkollenError
impl Sync for IdkollenError
impl Unpin for IdkollenError
impl UnsafeUnpin for IdkollenError
impl !UnwindSafe for IdkollenError
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