Enum preferences::PreferencesError [] [src]

pub enum PreferencesError {
    Json(Error),
    Io(Error),
    Directory(AppDirsError),
}

Error type representing the errors that can occur when saving or loading user data.

Variants

An error occurred during JSON serialization or deserialization.

An error occurred during preferences file I/O.

Couldn't figure out where to put or find the serialized data.

Trait Implementations

impl Debug for PreferencesError
[src]

Formats the value using the given formatter.

impl Display for PreferencesError
[src]

Formats the value using the given formatter. Read more

impl Error for PreferencesError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for PreferencesError
[src]

Performs the conversion.

impl From<FromUtf8Error> for PreferencesError
[src]

Performs the conversion.

impl From<Error> for PreferencesError
[src]

Performs the conversion.

impl From<AppDirsError> for PreferencesError
[src]

Performs the conversion.