#[non_exhaustive]pub enum SafeSubpathErrorKind {
NotValidRelativePath,
SymlinkInRelativePath,
Other,
}Expand description
Which kind of failure a SafeSubpathError reports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotValidRelativePath
The reference is not a relative path below the base (ERR_NOT_VALID_RELATIVE_PATH).
SymlinkInRelativePath
A link on the way leads outside the base (ERR_SYMLINK_IN_RELATIVE_PATH).
Other
Neither sentinel: a base that is not absolute, or a filesystem error while following
links (cannot resolve links: lstat …, too many links in …).
Trait Implementations§
Source§impl Clone for SafeSubpathErrorKind
impl Clone for SafeSubpathErrorKind
impl Copy for SafeSubpathErrorKind
Source§impl Debug for SafeSubpathErrorKind
impl Debug for SafeSubpathErrorKind
impl Eq for SafeSubpathErrorKind
Source§impl PartialEq for SafeSubpathErrorKind
impl PartialEq for SafeSubpathErrorKind
impl StructuralPartialEq for SafeSubpathErrorKind
Auto Trait Implementations§
impl Forget for SafeSubpathErrorKind
impl Freeze for SafeSubpathErrorKind
impl Move for SafeSubpathErrorKind
impl RefUnwindSafe for SafeSubpathErrorKind
impl Send for SafeSubpathErrorKind
impl Sync for SafeSubpathErrorKind
impl Unpin for SafeSubpathErrorKind
impl UnsafeUnpin for SafeSubpathErrorKind
impl UnwindSafe for SafeSubpathErrorKind
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