pub enum AppDataError {
EnvVarNotFound(String),
IoError(String),
CurrentDirError(String),
}Expand description
Custom error type
Variants§
EnvVarNotFound(String)
Environment variable not found
IoError(String)
IO error
CurrentDirError(String)
Failed to get current directory
Trait Implementations§
Source§impl Clone for AppDataError
impl Clone for AppDataError
Source§fn clone(&self) -> AppDataError
fn clone(&self) -> AppDataError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppDataError
impl Debug for AppDataError
Source§impl Display for AppDataError
impl Display for AppDataError
Source§impl Error for AppDataError
impl Error for AppDataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for AppDataError
impl RefUnwindSafe for AppDataError
impl Send for AppDataError
impl Sync for AppDataError
impl Unpin for AppDataError
impl UnwindSafe for AppDataError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more