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
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more