[][src]Enum credent_fs::Error

pub enum Error {
    UserConfigDirNotFound,
    CredentialsParentDirFailedToCreate {
        parent_path: PathBuf,
        io_error: Error,
    },
    CredentialsFileNonExistent {
        credentials_path: PathBuf,
    },
    CredentialsFileIsDir {
        credentials_path: PathBuf,
    },
    CredentialsFileFailedToRead {
        credentials_path: PathBuf,
        io_error: Error,
    },
    CredentialsFileFailedToWrite {
        credentials_path: PathBuf,
        io_error: Error,
    },
    CredentialsFileFailedToDeserialize {
        credentials_path: PathBuf,
        toml_de_error: Error,
    },
    CredentialsFileFailedToSerialize {
        profiles: Profiles,
        toml_ser_error: Error,
    },
}

Errors when reading the user credentials file.

Variants

UserConfigDirNotFound

Unable to determine user configuration directory.

CredentialsParentDirFailedToCreate

Failed to create the parent directory of the credentials file.

Fields of CredentialsParentDirFailedToCreate

parent_path: PathBuf

Path to the user credentials file.

io_error: Error

The underlying IO error.

CredentialsFileNonExistent

User credentials file does not exist.

Fields of CredentialsFileNonExistent

credentials_path: PathBuf

Path to the user credentials file.

CredentialsFileIsDir

User credentials file is a directory.

Fields of CredentialsFileIsDir

credentials_path: PathBuf

Path to the user credentials file.

CredentialsFileFailedToRead

Failed to read from the user credentials file.

Fields of CredentialsFileFailedToRead

credentials_path: PathBuf

Path to the user credentials file.

io_error: Error

The underlying IO error.

CredentialsFileFailedToWrite

Failed to write to the user credentials file.

Fields of CredentialsFileFailedToWrite

credentials_path: PathBuf

Path to the user credentials file.

io_error: Error

The underlying IO error.

CredentialsFileFailedToDeserialize

Failed to deserialize user credentials file contents.

Fields of CredentialsFileFailedToDeserialize

credentials_path: PathBuf

Path to the user credentials file.

toml_de_error: Error

The underlying TOML error.

CredentialsFileFailedToSerialize

Failed to serialize user credentials.

Fields of CredentialsFileFailedToSerialize

profiles: Profiles

Profiles which failed to be serialized.

toml_ser_error: Error

The underlying TOML error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error 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> 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, 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.