[][src]Enum osauth::ErrorKind

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

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

Methods

impl ErrorKind[src]

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

Short description of the error kind.

Trait Implementations

impl Copy for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl From<StatusCode> for ErrorKind[src]

impl Clone for ErrorKind[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for ErrorKind[src]

impl Display for ErrorKind[src]

impl Debug for ErrorKind[src]

impl Hash for ErrorKind[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

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

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

type Owned = T

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T