[][src]Enum vault_rs::Error

pub enum Error {
    ReqwestError(Error),
    HeadersErrors(ToStrError),
    UrlParseError(ParseError),
    InvalidVaultResponse(String),
    ParseIntError(ParseIntError),
    JsonError(Error),
    MissingAddress,
    MissingToken,
    IoError(Error),
    Utf8Error(FromUtf8Error),
    VaultError(String),
    MissingData(Box<Response>),
    UnexpectedResponse(String),
    MalformedResponse,
}

Error type for this library

Variants

ReqwestError(Error)

Errors related to API HTTP calls

HeadersErrors(ToStrError)

Errors parsing headers

UrlParseError(ParseError)

Errors related to URL parsing

InvalidVaultResponse(String)

Response from Vault was unexpected

ParseIntError(ParseIntError)

Errors parsing Numbers

JsonError(Error)

Errors deserializing JSON

MissingAddress

Vault address is missing

MissingToken

Vault token is missing

IoError(Error)

IO Error

Utf8Error(FromUtf8Error)

Error decoding bytes to UTF-8

VaultError(String)

Vault Error

MissingData(Box<Response>)

Missing data from Vault

UnexpectedResponse(String)

Expected an empty response, but got something

MalformedResponse

Response from Vault was not in the right form

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Fail for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FromUtf8Error> for Error[src]

impl From<ParseError> for Error[src]

impl From<ParseIntError> for Error[src]

impl From<ToStrError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> 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.