pub enum ErrorKind {
HttpResponse {
status: StatusCode,
error_code: Option<String>,
raw_response: Option<Box<RawResponse>>,
},
Connection,
Io,
DataConversion,
Credential,
Other,
}Available on crate feature
export-azure only.Expand description
The kind of error.
The classification of error is intentionally fairly coarse.
Variantsยง
HttpResponse
Available on crate feature
http only.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<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.