pub struct ParallelOptions {
pub num_threads: usize,
pub chunk_size: usize,
pub continue_on_error: bool,
}Expand description
Options for parallel processing
Fields§
§num_threads: usizeNumber of threads (0 = auto-detect based on CPU cores)
chunk_size: usizeChunk size for memory-controlled processing (0 = process all at once)
continue_on_error: boolWhether to continue on errors
Implementations§
Source§impl ParallelOptions
impl ParallelOptions
Sourcepub fn with_threads(num_threads: usize) -> Self
pub fn with_threads(num_threads: usize) -> Self
Create options with specific thread count
Sourcepub fn with_chunks(chunk_size: usize) -> Self
pub fn with_chunks(chunk_size: usize) -> Self
Create options with chunk processing for memory control
Sourcepub fn effective_threads(&self) -> usize
pub fn effective_threads(&self) -> usize
Get effective thread count
Trait Implementations§
Source§impl Clone for ParallelOptions
impl Clone for ParallelOptions
Source§fn clone(&self) -> ParallelOptions
fn clone(&self) -> ParallelOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParallelOptions
impl Debug 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().