pub enum WalkError {
RootNotAbsolute(PathBuf),
RootNotDirectory(PathBuf),
Io {
path: PathBuf,
source: Error,
},
NonUtf8Path(PathBuf),
}Expand description
Errors raised while walking the filesystem.
Variants§
RootNotAbsolute(PathBuf)
The root path is not absolute. The walk needs an absolute root so it can
rewrite relative paths exactly as the oracle does (it readlinks the
argument to an absolute path first); the CLI lane resolves the user’s
argument before calling walk.
RootNotDirectory(PathBuf)
The root path does not resolve to a directory.
Io
An I/O error occurred while reading the tree at path.
Fields
NonUtf8Path(PathBuf)
A path could not be rendered as UTF-8. The frozen manifest format is UTF-8 text; non-UTF-8 paths cannot be represented.
Trait Implementations§
Source§impl Error for WalkError
impl Error for WalkError
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 !RefUnwindSafe for WalkError
impl !UnwindSafe for WalkError
impl Freeze for WalkError
impl Send for WalkError
impl Sync for WalkError
impl Unpin for WalkError
impl UnsafeUnpin for WalkError
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