Enum app_dirs2::AppDirsError
source · pub enum AppDirsError {
Io(Error),
NotSupported,
InvalidAppInfo,
}
Expand description
Error type for any app_dirs
operation.
Variants§
Io(Error)
An I/O error occurred during the operation.
NotSupported
App-specific directories are not properly supported by the system (e.g. required environment variables don’t exist).
InvalidAppInfo
App info given to this library was invalid (e.g. app name or author were empty).
Trait Implementations§
source§impl Debug for AppDirsError
impl Debug for AppDirsError
source§impl Display for AppDirsError
impl Display for AppDirsError
source§impl Error for AppDirsError
impl Error for AppDirsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()