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
Json(Error)
An error occurred during JSON serialization or 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 Display for PreferencesError
[src]
impl Error for PreferencesError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for PreferencesError
[src]
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.