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
Serialize(EncoderError)
An error occurred during JSON serialization.
Deserialize(DecoderError)
An error occurred during JSON deserialization.
Io(Error)
An error occurred during preferences file I/O.
Directory(AppDirsError)
Couldn't figure out where to put or find the serialized data.
Trait Implementations
impl Debug for PreferencesError
[src]
impl From<EncoderError> for PreferencesError
[src]
fn from(e: EncoderError) -> Self
Performs the conversion.
impl From<DecoderError> for PreferencesError
[src]
fn from(e: DecoderError) -> Self
Performs the conversion.
impl From<FromUtf8Error> for PreferencesError
[src]
fn from(_: FromUtf8Error) -> Self
Performs the conversion.
impl From<Error> for PreferencesError
[src]
impl From<AppDirsError> for PreferencesError
[src]
fn from(e: AppDirsError) -> Self
Performs the conversion.