#[non_exhaustive]pub enum SelectionDisposition {
SelectedFile,
TraverseDirectory,
Skipped(SkipKind),
Unselected,
}Expand description
Final selection outcome for one filesystem entry.
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.
SelectedFile
A regular file accepted by every configured selection filter.
TraverseDirectory
A directory accepted for traversal.
Skipped(SkipKind)
An entry excluded by a typed scanner policy.
Unselected
An entry suppressed without a typed skip, such as a file below
min_depth or a non-file filesystem object.
Trait Implementations§
Source§impl Clone for SelectionDisposition
impl Clone for SelectionDisposition
Source§fn clone(&self) -> SelectionDisposition
fn clone(&self) -> SelectionDisposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionDisposition
Source§impl Debug for SelectionDisposition
impl Debug for SelectionDisposition
impl Eq for SelectionDisposition
Source§impl PartialEq for SelectionDisposition
impl PartialEq for SelectionDisposition
impl StructuralPartialEq for SelectionDisposition
Auto Trait Implementations§
impl Freeze for SelectionDisposition
impl RefUnwindSafe for SelectionDisposition
impl Send for SelectionDisposition
impl Sync for SelectionDisposition
impl Unpin for SelectionDisposition
impl UnsafeUnpin for SelectionDisposition
impl UnwindSafe for SelectionDisposition
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