pub struct ParallelOptions {
pub threads: NonZeroUsize,
pub min_items: usize,
pub min_total_bytes: Option<usize>,
pub signed_entry_threshold: Option<i64>,
}Expand description
Resolved worker count and serial-fallback thresholds for one parallel map call.
Fields§
§threads: NonZeroUsizeWorker threads (always at least 1).
min_items: usizeMinimum input length before spawning a pool (0 = always parallel when threads > 1).
min_total_bytes: Option<usize>Optional minimum summed payload bytes (used by object hashing).
signed_entry_threshold: Option<i64>Git checkout.thresholdForParallelism (signed); parallel only when count >= this value.
Implementations§
Source§impl ParallelOptions
impl ParallelOptions
Sourcepub fn parallelism(self) -> Parallelism
pub fn parallelism(self) -> Parallelism
View as Parallelism for legacy hash helpers.
Trait Implementations§
Source§impl Clone for ParallelOptions
impl Clone for ParallelOptions
impl Copy for ParallelOptions
Source§impl Debug for ParallelOptions
impl Debug for ParallelOptions
impl Eq for ParallelOptions
Source§impl PartialEq for ParallelOptions
impl PartialEq for ParallelOptions
impl StructuralPartialEq for ParallelOptions
Auto Trait Implementations§
impl Freeze for ParallelOptions
impl RefUnwindSafe for ParallelOptions
impl Send for ParallelOptions
impl Sync for ParallelOptions
impl Unpin for ParallelOptions
impl UnsafeUnpin for ParallelOptions
impl UnwindSafe for ParallelOptions
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