pub enum Parallelism {
Serial,
ThreadPoolPerTraversal {
thread_name: &'static str,
},
}
Available on crate feature
walkdir
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.
Auto Trait Implementations§
impl Freeze for Parallelism
impl RefUnwindSafe for Parallelism
impl Send for Parallelism
impl Sync for Parallelism
impl Unpin for Parallelism
impl UnwindSafe for Parallelism
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