pub enum WalkState {
Continue,
Skip,
Quit,
}
Expand description
WalkState is used in the parallel recursive directory iterator to indicate whether walking should continue as normal, skip descending into a particular directory or quit the walk entirely.
Variants
Continue
Continue walking as normal.
Skip
If the directory entry given is a directory, don’t descend into it. In all other cases, this has no effect.
Quit
Quit the entire iterator as soon as possible.
Note that this is an inherently asynchronous action. It is possible for more entries to be yielded even after instructing the iterator to quit.
Trait Implementations
impl Copy for WalkState
impl Eq for WalkState
impl StructuralEq for WalkState
impl StructuralPartialEq for WalkState
Auto Trait Implementations
impl RefUnwindSafe for WalkState
impl Send for WalkState
impl Sync for WalkState
impl Unpin for WalkState
impl UnwindSafe for WalkState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more