pub enum Error {
NetworkError(Error),
DeserializeError(Error),
ApiError(EasyBit),
}
Expand description
§Catch-all error structure for this library.
If a deserialization error occurs, it is likely that the underlying API has changed and the library needs to be updated. Kindly create an issue on GitHub. If a network error occurs, it is likely that the API is down or the URL is incorrect. If an API error occurs, the API has returned an error message, and you should review your code.
Variants§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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