pub enum ExplorerError {
MissingRoot,
InvalidRelPath(String),
PathEscapesRoot,
NotADirectory(String),
Io(Error),
}Expand description
Errors returned by the explorer helpers.
Variants§
MissingRoot
The workspace root directory has not been configured.
InvalidRelPath(String)
The supplied relative path is syntactically invalid (absolute, contains
.., etc.).
PathEscapesRoot
The resolved path escapes the workspace root (e.g. via symlinks).
NotADirectory(String)
The resolved path does not point to a directory.
Io(Error)
Underlying I/O error.
Trait Implementations§
Source§impl Debug for ExplorerError
impl Debug for ExplorerError
Source§impl Display for ExplorerError
impl Display for ExplorerError
Source§impl Error for ExplorerError
impl Error for ExplorerError
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 ExplorerError
impl !RefUnwindSafe for ExplorerError
impl Send for ExplorerError
impl Sync for ExplorerError
impl Unpin for ExplorerError
impl !UnwindSafe for ExplorerError
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