#[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.
impl Copy for ErrorKind
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 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.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.