Enum credentials::Error[][src]

pub enum Error {
    Credential {
        name: String,
        cause: Box<Error>,
    },
    FileRead {
        path: PathBuf,
        cause: Box<Error>,
    },
    InvalidUrl {
        url: String,
    },
    Io(Error),
    Json(Error),
    MissingEntry {
        name: String,
    },
    MissingKeyInPath {
        path: String,
    },
    MissingKeyInSecret {
        secret: String,
        key: String,
    },
    MissingVaultAddr,
    MissingVaultToken(Box<Error>),
    NoBackend,
    NoHomeDirectory,
    NonUnicodePath {
        path: PathBuf,
    },
    Parse {
        input: String,
    },
    Other(Error),
    Secretfile(Box<Error>),
    UndefinedEnvironmentVariable {
        name: String,
        cause: VarError,
    },
    UnexpectedHttpStatus {
        status: StatusCode,
        body: String,
    },
    UnparseableUrl(UrlError),
    Url {
        url: Url,
        cause: Box<Error>,
    },
    // some variants omitted
}

An error returned by credentials.

Variants

Could not access a secure credential.

Fields of Credential

The name of the credential we couldn't access.

The reason why we couldn't access it.

Could not read file.

Fields of FileRead

The file we couldn't access.

The reason why we couldn't access it.

We encountered an invalid URL.

Fields of InvalidUrl

The invalid URL.

An error occurred doing I/O.

We failed to parse JSON data.

Missing entry in Secretfile.

Fields of MissingEntry

The name of the entry.

Path is missing a ':key' component.

Fields of MissingKeyInPath

The invalid path.

Secret does not have value for specified key.

Fields of MissingKeyInSecret

The name of the secret.

The key for which we have no value.

VAULT_ADDR not specified.

Cannot get either VAULT_TOKEN or ~/.vault_token.

No credentials backend available.

Can't find home directory.

Path cannot be represented as Unicode.

Fields of NonUnicodePath

The path which cannot be represented as Unicode.

Parsing error.

Fields of Parse

The input we couldn't parse.

An unspecified kind of error occurred.

Can't read Secretfile.

Undefined environment variable.

Fields of UndefinedEnvironmentVariable

The name of the environment variable.

The error we encountered.

Unexpected HTTP status.

Fields of UnexpectedHttpStatus

The status we received.

The HTTP body we received.

We failed to parse a URL.

Could not access URL.

Fields of Url

The URL we couldn't access.

The reason we couldn't access it.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<UrlError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error