[−][src]Struct jwalk::ReadDirSpec
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]
path: P,
depth: usize,
state: Option<Box<dyn Any + Send + Sync>>
) -> ReadDirSpec
Trait Implementations
Auto Trait Implementations
impl Send for ReadDirSpec
impl Sync for ReadDirSpec
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,