pub enum WorkingPathError {
NotFound,
PermissionDenied,
NotUnicode(PathBuf),
}
Expand description
One of the possible errors returned by working_path()
.
Variants§
NotFound
The working path was not found.
PermissionDenied
The user does not have permission to access the current working directory.
NotUnicode(PathBuf)
The working path is not unicode.
Trait Implementations§
Source§impl Debug for WorkingPathError
impl Debug for WorkingPathError
Source§impl Display for WorkingPathError
impl Display for WorkingPathError
Source§impl Error for WorkingPathError
impl Error for WorkingPathError
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 WorkingPathError
impl RefUnwindSafe for WorkingPathError
impl Send for WorkingPathError
impl Sync for WorkingPathError
impl Unpin for WorkingPathError
impl UnwindSafe for WorkingPathError
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