pub enum CurrentDirError {
Get(Error),
Set(Error),
}Expand description
Context for an error that can occur while locking the current directory. Both the get and the set can fail; this error tells you which one failed. Use Error::source to get the underlying error.
Variants§
Get(Error)
Error while getting the current directory. The current directory must be fetched before it’s modified so we know what value to revert to.
Set(Error)
Error while setting the current directory
Trait Implementations§
Source§impl Debug for CurrentDirError
impl Debug for CurrentDirError
Source§impl Display for CurrentDirError
impl Display for CurrentDirError
Source§impl Error for CurrentDirError
impl Error for CurrentDirError
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 CurrentDirError
impl !RefUnwindSafe for CurrentDirError
impl Send for CurrentDirError
impl Sync for CurrentDirError
impl Unpin for CurrentDirError
impl !UnwindSafe for CurrentDirError
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