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
Credential
Could not access a secure credential.
Fields of Credential
name: String | The name of the credential we couldn't access. |
cause: Box<Error> | The reason why we couldn't access it. |
FileRead
Could not read file.
Fields of FileRead
path: PathBuf | The file we couldn't access. |
cause: Box<Error> | The reason why we couldn't access it. |
InvalidUrl
We encountered an invalid URL.
Fields of InvalidUrl
url: String | The invalid URL. |
Io(Error)
An error occurred doing I/O.
Json(Error)
We failed to parse JSON data.
MissingEntry
Missing entry in Secretfile.
Fields of MissingEntry
name: String | The name of the entry. |
MissingKeyInPath
Path is missing a ':key' component.
Fields of MissingKeyInPath
path: String | The invalid path. |
MissingKeyInSecret
Secret does not have value for specified key.
Fields of MissingKeyInSecret
secret: String | The name of the secret. |
key: String | The key for which we have no value. |
MissingVaultAddr
VAULT_ADDR
not specified.
MissingVaultToken(Box<Error>)
Cannot get either VAULT_TOKEN
or ~/.vault_token
.
NoBackend
No credentials
backend available.
NoHomeDirectory
Can't find home directory.
NonUnicodePath
Path cannot be represented as Unicode.
Fields of NonUnicodePath
path: PathBuf | The path which cannot be represented as Unicode. |
Parse
Parsing error.
Fields of Parse
input: String | The input we couldn't parse. |
Other(Error)
An unspecified kind of error occurred.
Secretfile(Box<Error>)
Can't read Secretfile
.
UndefinedEnvironmentVariable
Undefined environment variable.
Fields of UndefinedEnvironmentVariable
name: String | The name of the environment variable. |
cause: VarError | The error we encountered. |
UnexpectedHttpStatus
Unexpected HTTP status.
Fields of UnexpectedHttpStatus
status: StatusCode | The status we received. |
UnparseableUrl(UrlError)
We failed to parse a URL.
Url
Could not access URL.
Fields of Url
url: Url | The URL we couldn't access. |
cause: Box<Error> | The reason we couldn't access it. |
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Fail for Error
[src]
fn cause(&self) -> Option<&Fail>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
[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
fn root_cause(&self) -> &(Fail + 'static)
[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]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more