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) -> WalkState
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: &WalkState) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for WalkState
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for WalkState
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for WalkState
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for WalkState
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for WalkState
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for WalkState
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for WalkState
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for WalkState
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for WalkState
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>