pub enum ErrorKind {
Show 15 variants
AuthenticationFailed,
AccessDenied,
ResourceNotFound,
TooManyItems,
EndpointNotFound,
InvalidInput,
IncompatibleApiVersion,
Conflict,
OperationTimedOut,
OperationFailed,
ProtocolError,
InvalidResponse,
InternalServerError,
InvalidConfig,
__Nonexhaustive,
}
Expand description
Kind of an error.
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 file.
__Nonexhaustive
Implementations
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Short description of the error kind.
Trait Implementations
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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.