[][src]Enum jwalk::Parallelism

pub enum Parallelism {
    Serial,
    RayonDefaultPool,
    RayonExistingPool(Arc<ThreadPool>),
    RayonNewPool(usize),
}

Degree of parallelism to use when performing walk.

Parallelism happens at the directory level. It will help when walking deep filesystems with many directories. It wont help when reading a single directory with many files.

If you plan to perform lots of per file processing you might want to use Rayon to

Variants

Serial

Run on calling thread

RayonDefaultPool

Run in default rayon thread pool

RayonExistingPool(Arc<ThreadPool>)

Run in existing rayon thread pool

RayonNewPool(usize)

Run in new rayon thread pool with # threads

Trait Implementations

impl Clone for Parallelism[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.