#[non_exhaustive]pub enum SymlinkPolicy {
Reject,
FollowWithinFileSystem,
}Expand description
Controls whether a filesystem may resolve symbolic links while operating within its configured namespace.
§Examples
use qubit_fs::metadata::SymlinkPolicy;
assert!(matches!(SymlinkPolicy::Reject, SymlinkPolicy::Reject));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.
Reject
Reject an operation that requires symbolic-link resolution.
FollowWithinFileSystem
Follow symbolic links only when the resolved target remains inside the configured filesystem namespace.
Implementations§
Trait Implementations§
Source§impl Clone for SymlinkPolicy
impl Clone for SymlinkPolicy
impl Copy for SymlinkPolicy
Source§impl Debug for SymlinkPolicy
impl Debug for SymlinkPolicy
Source§impl Default for SymlinkPolicy
impl Default for SymlinkPolicy
impl Eq for SymlinkPolicy
Source§impl Hash for SymlinkPolicy
impl Hash for SymlinkPolicy
Source§impl PartialEq for SymlinkPolicy
impl PartialEq for SymlinkPolicy
impl StructuralPartialEq for SymlinkPolicy
Auto Trait Implementations§
impl Freeze for SymlinkPolicy
impl RefUnwindSafe for SymlinkPolicy
impl Send for SymlinkPolicy
impl Sync for SymlinkPolicy
impl Unpin for SymlinkPolicy
impl UnsafeUnpin for SymlinkPolicy
impl UnwindSafe for SymlinkPolicy
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