pub struct StatefulWalkEntry<E> {
pub state: E,
/* private fields */
}Expand description
A walk entry carrying caller-owned state assigned by process_read_dir.
Fields§
§state: EState retained with this entry after the directory callback returns.
Implementations§
Source§impl<E> StatefulWalkEntry<E>
impl<E> StatefulWalkEntry<E>
pub const fn entry(&self) -> &WalkEntry
pub fn path(&self) -> &Path
pub const fn depth(&self) -> usize
pub const fn is_file(&self) -> bool
pub const fn is_dir(&self) -> bool
pub const fn read_children(&self) -> bool
Sourcepub const fn set_read_children(&mut self, enabled: bool)
pub const fn set_read_children(&mut self, enabled: bool)
Controls whether traversal descends into this directory.
pub fn into_parts(self) -> (WalkEntry, E)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for StatefulWalkEntry<E>where
E: Freeze,
impl<E> RefUnwindSafe for StatefulWalkEntry<E>where
E: RefUnwindSafe,
impl<E> Send for StatefulWalkEntry<E>where
E: Send,
impl<E> Sync for StatefulWalkEntry<E>where
E: Sync,
impl<E> Unpin for StatefulWalkEntry<E>where
E: Unpin,
impl<E> UnsafeUnpin for StatefulWalkEntry<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for StatefulWalkEntry<E>where
E: UnwindSafe,
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