Enum WalkState

pub enum WalkState

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 Clone for WalkState

fn clone(&self) -> Self

impl Copy for WalkState

impl Debug for WalkState

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for WalkState

impl PartialEq for WalkState

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for WalkState

Auto Trait Implementations

impl Freeze for WalkState

impl RefUnwindSafe for WalkState

impl Send for WalkState

impl Sync for WalkState

impl Unpin for WalkState

impl UnsafeUnpin for WalkState

impl UnwindSafe for WalkState

Blanket Implementations

impl<T> Any for WalkState where T: 'static + ?Sized,

impl<T> Borrow<T> for WalkState where T: ?Sized,

impl<T> BorrowMut<T> for WalkState where T: ?Sized,

impl<T> CloneToUninit for WalkState where T: Clone,

impl<T> From<T> for WalkState

impl<T> Pointable for WalkState

impl<T> ToOwned for WalkState where T: Clone,

impl<T, U> Into<U> for WalkState where U: From<T>,

impl<T, U> TryFrom<U> for WalkState where U: Into<T>,

impl<T, U> TryInto<U> for WalkState where U: TryFrom<T>,