pub enum ErrorKind {
HttpResponse {
status: StatusCode,
error_code: Option<String>,
raw_response: Option<Box<RawResponse>>,
},
Connection,
Io,
DataConversion,
Credential,
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.
Connection
A connection to the server could not be established.
The request was never sent, so it is safe to retry both reads and writes.
Io
An error performing IO.
DataConversion
An error converting data.
Credential
An error getting an API credential token.
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 UnsafeUnpin 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.