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

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]

[src]

Formats the value using the given formatter. Read more

impl Fail for Error
[src]

[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

[src]

Provides context for this failure. Read more

[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Important traits for Causes<'f>
[src]

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

[src]

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<UrlError> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error