#[non_exhaustive]
pub enum ErrorKind {
Show 14 variants
AuthenticationFailed,
AccessDenied,
ResourceNotFound,
TooManyItems,
EndpointNotFound,
InvalidInput,
IncompatibleApiVersion,
Conflict,
OperationTimedOut,
OperationFailed,
ProtocolError,
InvalidResponse,
InternalServerError,
InvalidConfig,
}
Expand description
Kind of an error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AuthenticationFailed
Authentication failure
Maps to HTTP 401.
AccessDenied
Access denied.
Maps to HTTP 403.
ResourceNotFound
Requested resource was not found.
Roughly maps to HTTP 404 and 410.
TooManyItems
Request returned more items than expected.
EndpointNotFound
Requested service endpoint was not found.
InvalidInput
Invalid value passed to one of paremeters.
May be result of HTTP 400.
IncompatibleApiVersion
Unsupported or incompatible API version.
May be a result of HTTP 406.
Conflict
Conflict in the request.
OperationTimedOut
Operation has reached the specified time out.
OperationFailed
Operation failed to complete.
ProtocolError
Protocol-level error reported by underlying HTTP library.
InvalidResponse
Response received from the server is malformed.
InternalServerError
Internal server error.
Maps to HTTP 5xx codes.
InvalidConfig
Invalid clouds.yaml, clouds-public.yaml or secure.yaml file.
Implementations§
Trait Implementations§
source§impl From<StatusCode> for ErrorKind
impl From<StatusCode> for ErrorKind
source§fn from(value: StatusCode) -> ErrorKind
fn from(value: StatusCode) -> ErrorKind
Converts to this type from the input type.
source§impl PartialEq<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
impl Copy 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.