Enum preferences::PreferencesError [] [src]

pub enum PreferencesError {
    Serialize(EncoderError),
    Deserialize(DecoderError),
    Io(Error),
}

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 file I/O.

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.