pub enum ReadDirFilter {
AllowAll,
AllowOnly(HashSet<OsString>),
DenyAll,
}Expand description
Represents a pre-calculated filter for directory entry validation.
Variants§
AllowAll
Allows all directory entries (parent directory has Full access level).
AllowOnly(HashSet<OsString>)
Allows only the specified entry names (parent directory has Traverse access level).
DenyAll
Denies all directory entries (parent directory is not accessible).
Trait Implementations§
Source§impl Clone for ReadDirFilter
impl Clone for ReadDirFilter
Source§fn clone(&self) -> ReadDirFilter
fn clone(&self) -> ReadDirFilter
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ReadDirFilter
impl RefUnwindSafe for ReadDirFilter
impl Send for ReadDirFilter
impl Sync for ReadDirFilter
impl Unpin for ReadDirFilter
impl UnwindSafe for ReadDirFilter
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