Enum openstack::ErrorKind

source ·
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

Short description of the error kind.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.