Enum credent_fs_model::Error[][src]

pub enum Error<C = Credentials> where
    C: Clone + Eq
{ UserConfigDirNotFound, CredentialsParentDirCreate { parent_path: PathBuf, error: Error, }, CredentialsFileNonExistent { credentials_path: PathBuf, }, CredentialsFileIsDir { credentials_path: PathBuf, }, CredentialsFileRead { credentials_path: PathBuf, error: Error, }, CredentialsFileWrite { credentials_path: PathBuf, error: Error, }, CredentialsFileDeserialize { credentials_path: PathBuf, error: Error, }, CredentialsFileSerialize { profiles: Profiles<C>, error: Error, }, }

Errors when reading the user credentials file.

Variants

UserConfigDirNotFound

Unable to determine user configuration directory.

CredentialsParentDirCreate

Failed to create the parent directory of the credentials file.

Fields of CredentialsParentDirCreate

parent_path: PathBuf

Path to the user credentials file.

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.

CredentialsFileRead

Failed to read from the user credentials file.

Fields of CredentialsFileRead

credentials_path: PathBuf

Path to the user credentials file.

error: Error

The underlying IO error.

CredentialsFileWrite

Failed to write to the user credentials file.

Fields of CredentialsFileWrite

credentials_path: PathBuf

Path to the user credentials file.

error: Error

The underlying IO error.

CredentialsFileDeserialize

Failed to deserialize user credentials file contents.

Fields of CredentialsFileDeserialize

credentials_path: PathBuf

Path to the user credentials file.

error: Error

The underlying TOML error.

CredentialsFileSerialize

Failed to serialize user credentials.

Fields of CredentialsFileSerialize

profiles: Profiles<C>

Profiles which failed to be serialized.

error: Error

The underlying TOML error.

Trait Implementations

impl<C: Debug> Debug for Error<C> where
    C: Clone + Eq
[src]

impl<C> Display for Error<C> where
    C: Clone + Eq + Debug
[src]

impl<C> Error for Error<C> where
    C: Clone + Eq + Debug
[src]

Auto Trait Implementations

impl<C = Credentials> !RefUnwindSafe for Error<C>

impl<C> Send for Error<C> where
    C: Send

impl<C> Sync for Error<C> where
    C: Sync

impl<C> Unpin for Error<C>

impl<C = Credentials> !UnwindSafe for Error<C>

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.