pub struct ProcessorConfigBuilder { /* private fields */ }Expand description
Builder for ProcessorConfig with fluent API
Implementations§
Source§impl ProcessorConfigBuilder
impl ProcessorConfigBuilder
Sourcepub fn chunk_size(self, size: usize) -> Self
pub fn chunk_size(self, size: usize) -> Self
Sets the chunk size in bytes
Sourcepub fn parallel_threshold(self, threshold: usize) -> Self
pub fn parallel_threshold(self, threshold: usize) -> Self
Sets the parallel processing threshold
Sourcepub fn max_threads(self, threads: Option<usize>) -> Self
pub fn max_threads(self, threads: Option<usize>) -> Self
Sets the maximum number of threads
Sourcepub fn overlap_size(self, size: usize) -> Self
pub fn overlap_size(self, size: usize) -> Self
Sets the overlap size between chunks
Sourcepub fn build(self) -> ProcessingResult<ProcessorConfig>
pub fn build(self) -> ProcessingResult<ProcessorConfig>
Builds the configuration, validating parameters
Sourcepub fn build_unchecked(self) -> ProcessorConfig
pub fn build_unchecked(self) -> ProcessorConfig
Builds the configuration without validation (for testing)
Trait Implementations§
Source§impl Clone for ProcessorConfigBuilder
impl Clone for ProcessorConfigBuilder
Source§fn clone(&self) -> ProcessorConfigBuilder
fn clone(&self) -> ProcessorConfigBuilder
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 ProcessorConfigBuilder
impl Debug for ProcessorConfigBuilder
Auto Trait Implementations§
impl Freeze for ProcessorConfigBuilder
impl RefUnwindSafe for ProcessorConfigBuilder
impl Send for ProcessorConfigBuilder
impl Sync for ProcessorConfigBuilder
impl Unpin for ProcessorConfigBuilder
impl UnwindSafe for ProcessorConfigBuilder
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 more