Enum git_features::fs::walkdir::Parallelism
source · pub enum Parallelism {
Serial,
ThreadPoolPerTraversal {
thread_name: &'static str,
},
}
Available on crate feature
fs-walkdir-parallel
and (crate features walkdir
or fs-walkdir-parallel
) only.Expand description
The desired level of parallelism.
Variants§
Serial
Do not parallelize at all by making a serial traversal on the current thread.
ThreadPoolPerTraversal
Create a new thread pool for each traversal with up to 16 threads or the amount of logical cores of the machine.
Trait Implementations§
source§impl From<Parallelism> for Parallelism
impl From<Parallelism> for Parallelism
source§fn from(v: Parallelism) -> Self
fn from(v: Parallelism) -> Self
Converts to this type from the input type.