pub enum StrictPathError {
InvalidRestriction {
restriction: PathBuf,
source: Error,
},
PathEscapesBoundary {
attempted_path: PathBuf,
restriction_boundary: PathBuf,
},
PathResolutionError {
path: PathBuf,
source: Error,
},
}Expand description
Errors produced by PathBoundary creation and path validation.
Variants§
InvalidRestriction
The PathBoundary root is invalid (missing, not a directory, or IO error).
PathEscapesBoundary
The attempted path would resolve outside the PathBoundary boundary.
PathResolutionError
Canonicalization/resolution failed for the given path.
Trait Implementations§
Source§impl Debug for StrictPathError
impl Debug for StrictPathError
Source§impl Display for StrictPathError
impl Display for StrictPathError
Source§impl Error for StrictPathError
impl Error for StrictPathError
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 StrictPathError
impl !RefUnwindSafe for StrictPathError
impl Send for StrictPathError
impl Sync for StrictPathError
impl Unpin for StrictPathError
impl !UnwindSafe for StrictPathError
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