Enum preferences::PreferencesError [] [src]

pub enum PreferencesError {
    Serialize(EncoderError),
    Deserialize(DecoderError),
    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.

An error occurred during JSON 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 From<EncoderError> for PreferencesError
[src]

Performs the conversion.

impl From<DecoderError> 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.