[][src]Struct jwalk::ReadDirSpec

pub struct ReadDirSpec {
    pub path: PathBuf,
    pub depth: usize,
    pub state: Option<Box<dyn Any + Send + Sync>>,
}

Specification use to read a directory.

When a directory is read a new ReadDirSpec is created for each folder found in that directory. These specs are then sent to a work queue that is used to schedule future directory reads.

Fields

path: PathBuf

The directory to read.

depth: usize

Depth of the directory to read relative to root of walk.

state: Option<Box<dyn Any + Send + Sync>>

Location where process_entries callback function can store walk state. This is a placeholder right now. One intended use case is to store .gitignore state to filter entries during the walk.

Methods

impl ReadDirSpec[src]

pub fn new<P: Into<PathBuf>>(
    path: P,
    depth: usize,
    state: Option<Box<dyn Any + Send + Sync>>
) -> ReadDirSpec
[src]

Trait Implementations

impl Debug for ReadDirSpec[src]

Auto Trait Implementations

impl Send for ReadDirSpec

impl Sync for ReadDirSpec

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]