pub enum MoonbaseApiError {
Io(Error),
UnexpectedResponse(StatusCode, String),
InvalidToken(Error),
}Variants§
Io(Error)
An I/O error occurred when contacting the Moonbase API.
UnexpectedResponse(StatusCode, String)
We received an unexpected response from the Moonbase API.
InvalidToken(Error)
The token returned by the Moonbase API was malformed.
Trait Implementations§
Source§impl Debug for MoonbaseApiError
impl Debug for MoonbaseApiError
Source§impl Display for MoonbaseApiError
impl Display for MoonbaseApiError
Source§impl Error for MoonbaseApiError
impl Error for MoonbaseApiError
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 MoonbaseApiError
impl From<Error> for MoonbaseApiError
Source§impl From<Error> for MoonbaseApiError
impl From<Error> for MoonbaseApiError
Source§impl From<MoonbaseApiError> for CachedTokenError
impl From<MoonbaseApiError> for CachedTokenError
Source§fn from(source: MoonbaseApiError) -> Self
fn from(source: MoonbaseApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MoonbaseApiError
impl !RefUnwindSafe for MoonbaseApiError
impl Send for MoonbaseApiError
impl Sync for MoonbaseApiError
impl Unpin for MoonbaseApiError
impl UnsafeUnpin for MoonbaseApiError
impl !UnwindSafe for MoonbaseApiError
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