Enum dogehouse_api::ErrorType [−][src]
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 !RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl !UnwindSafe for ErrorType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]