Enum azure_core::error::ErrorKind
source · pub enum ErrorKind {
HttpResponse {
status: StatusCode,
error_code: Option<String>,
},
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
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§
source§impl ErrorKind
impl ErrorKind
pub fn into_error(self) -> Error
pub fn http_response(status: StatusCode, error_code: Option<String>) -> Self
pub fn http_response_from_body(status: StatusCode, body: &[u8]) -> Self
Trait Implementations§
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.