#[non_exhaustive]pub enum SymlinkVerdict {
Allowed,
Skip(&'static str),
}Expand description
What extraction may do with one symlink entry, decided by
classify_symlink_target. A genuine escape is not a verdict: it is
Err(Error::UnsafePath), exit 7.
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.
Allowed
Create the link: its target resolves inside the destination.
Skip(&'static str)
Do not create the link; name the entry in an
crate::Fidelity::EntrySkipped with this reason and carry on. The
target’s SHAPE is one this extraction cannot prove contained (..
after a name) or names nothing (empty). Nothing is created, so
nothing can escape.
Trait Implementations§
Source§impl Clone for SymlinkVerdict
impl Clone for SymlinkVerdict
impl Copy for SymlinkVerdict
Source§impl Debug for SymlinkVerdict
impl Debug for SymlinkVerdict
impl Eq for SymlinkVerdict
Source§impl PartialEq for SymlinkVerdict
impl PartialEq for SymlinkVerdict
impl StructuralPartialEq for SymlinkVerdict
Auto Trait Implementations§
impl Freeze for SymlinkVerdict
impl RefUnwindSafe for SymlinkVerdict
impl Send for SymlinkVerdict
impl Sync for SymlinkVerdict
impl Unpin for SymlinkVerdict
impl UnsafeUnpin for SymlinkVerdict
impl UnwindSafe for SymlinkVerdict
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