[][src]Enum hc_vault::Error

pub enum Error {
    ParseError(ParseError),
    ReqwestError(Error),
    IOError(Error),
    InvalidRequest,
    IsSealed,
    NotFound,
    Unauthorized,
    SessionExpired,
    Other,
}

The Error

Variants

ParseError(ParseError)

ParseError is returned when there was an error parsing a url

ReqwestError(Error)

ReqwestError is returned when the request made to vault itself fails

IOError(Error)

IOError is returned by operations that have to do some sort of IO, like the helper function for the kubernetes backend, which loads the JWT token from a local file

InvalidRequest

InvalidRequest is returned when the made to vault was missing data or was invalid/ malformed data and therefore was rejected by vault before doing anything

IsSealed

IsSealed is returned when the given vault instance is not available because it is currently sealed and therefore does not accept or handle any requests other than to unseal it

NotFound

NotFound is returned when the given vault endpoint/path was not found on the actual vault instance that you are connected to

Unauthorized

Unauthorized is returned when your current Session has either expired and has not been renewed or when the credentials for login are not valid and therefore rejected or when you try to access something that you dont have the permissions to do so

SessionExpired

SessionExpired is returned when the session you tried to use is expired and was configured to not automatically obtain a new session, when it notices that the current one is expired

Other

Other simply represents all other errors that could not be grouped into on the other categories listed above

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for RenewError[src]

impl From<ParseError> for Error[src]

impl From<u16> for Error[src]

This is only meant for status codes and assumes that the given u16 is a status-code from an http-request

Auto Trait Implementations

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<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> 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.