[][src]Enum openstack::ErrorKind

#[non_exhaustive]pub enum ErrorKind {
    AuthenticationFailed,
    AccessDenied,
    ResourceNotFound,
    TooManyItems,
    EndpointNotFound,
    InvalidInput,
    IncompatibleApiVersion,
    Conflict,
    OperationTimedOut,
    OperationFailed,
    ProtocolError,
    InvalidResponse,
    InternalServerError,
    InvalidConfig,
}

Kind of an error.

Variants (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

impl ErrorKind[src]

pub fn description(&self) -> &'static str[src]

Short description of the error kind.

Trait Implementations

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Eq for ErrorKind[src]

impl From<StatusCode> for ErrorKind[src]

impl Hash for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl StructuralEq for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.