pub enum ErrorKind {
    HttpResponse {
        status: StatusCode,
        error_code: Option<String>,
        raw_response: Option<Box<RawResponse>>,
    },
    Io,
    DataConversion,
    Credential,
    MockFramework,
    Other,
}Expand description
The kind of error.
The classification of error is intentionally fairly coarse.
Variants§
HttpResponse
An HTTP status code that was not expected.
Fields
§
status: StatusCodeAn HTTP status code.
§
error_code: Option<String>An error code returned by the service, or a friendly description of the status.
§
raw_response: Option<Box<RawResponse>>The raw response returned by the service.
Io
An error performing IO.
DataConversion
An error converting data.
Credential
An error getting an API credential token.
MockFramework
An error having to do with the mock framework.
Other
A catch all for other kinds of errors.
Implementations§
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.