pub struct ConfigBuilder { /* private fields */ }Expand description
Fluent builder for configuration
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn chunk_size(self, bytes: usize) -> Self
pub fn chunk_size(self, bytes: usize) -> Self
Set the chunk size in bytes
Sourcepub fn threads(self, count: Option<usize>) -> Self
pub fn threads(self, count: Option<usize>) -> Self
Set the number of threads (None = all available)
Sourcepub fn parallel_threshold(self, bytes: usize) -> Self
pub fn parallel_threshold(self, bytes: usize) -> Self
Set the parallel processing threshold in bytes
Sourcepub fn overlap_size(self, bytes: usize) -> Self
pub fn overlap_size(self, bytes: usize) -> Self
Set the overlap size between chunks in bytes
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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