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.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more