pub enum ErrorType {
NotFound(u16),
ParseError(Error),
NoHTTP(&'static str),
}Expand description
Error type for any error that could occur after sending a request to the Dogehouse API.
Variants§
NotFound(u16)
Constructed when the API Endpoint didn’t return the 200 status code. Contains the
returned status code by the API.
ParseError(Error)
Constructed when the API didn’t return valid JSON, or without valid fields. Contains serde_json’s error.
NoHTTP(&'static str)
Constructed when for some reason reqwest’s get() doesn’t return an Ok() value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorType
impl !RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl !UnwindSafe for ErrorType
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