pub enum PathPolicy {
DenyAll,
AllowList(HashSet<PathBuf>),
DenyList(HashSet<PathBuf>),
AllowAll,
}Expand description
Policy for filesystem path access.
Variants§
DenyAll
Deny all filesystem access.
AllowList(HashSet<PathBuf>)
Allow only specific paths.
DenyList(HashSet<PathBuf>)
Deny specific paths (allow all others).
AllowAll
Allow all filesystem access.
Implementations§
Trait Implementations§
Source§impl Clone for PathPolicy
impl Clone for PathPolicy
Source§fn clone(&self) -> PathPolicy
fn clone(&self) -> PathPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathPolicy
impl Debug for PathPolicy
Source§impl Default for PathPolicy
impl Default for PathPolicy
Source§impl PartialEq for PathPolicy
impl PartialEq for PathPolicy
impl StructuralPartialEq for PathPolicy
Auto Trait Implementations§
impl Freeze for PathPolicy
impl RefUnwindSafe for PathPolicy
impl Send for PathPolicy
impl Sync for PathPolicy
impl Unpin for PathPolicy
impl UnwindSafe for PathPolicy
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