pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for creating custom configurations
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn chunk_size(self, size: usize) -> Self
pub fn chunk_size(self, size: usize) -> Self
Set chunk size
Sourcepub fn chunking_strategy(self, strategy: ChunkingStrategy) -> Self
pub fn chunking_strategy(self, strategy: ChunkingStrategy) -> Self
Set chunking strategy
Sourcepub fn hash_algorithm(self, algorithm: HashAlgorithm) -> Self
pub fn hash_algorithm(self, algorithm: HashAlgorithm) -> Self
Set hash algorithm
Sourcepub fn num_threads(self, threads: usize) -> Self
pub fn num_threads(self, threads: usize) -> Self
Set number of threads
Sourcepub fn enable_parallel_chunking(self, enable: bool) -> Self
pub fn enable_parallel_chunking(self, enable: bool) -> Self
Enable or disable parallel chunking
Sourcepub fn parallel_threshold(self, threshold: usize) -> Self
pub fn parallel_threshold(self, threshold: usize) -> Self
Set parallel chunking threshold
Sourcepub fn enable_pooling(self, enable: bool) -> Self
pub fn enable_pooling(self, enable: bool) -> Self
Enable or disable memory pooling
Sourcepub fn pool_max_size(self, size: usize) -> Self
pub fn pool_max_size(self, size: usize) -> Self
Set maximum pool size
Sourcepub fn enable_metrics(self, enable: bool) -> Self
pub fn enable_metrics(self, enable: bool) -> Self
Enable or disable metrics collection
Sourcepub fn metrics_max_samples(self, samples: usize) -> Self
pub fn metrics_max_samples(self, samples: usize) -> Self
Set maximum metrics samples
Sourcepub fn verify_blocks(self, verify: bool) -> Self
pub fn verify_blocks(self, verify: bool) -> Self
Enable or disable block verification
Sourcepub fn validate_cids(self, validate: bool) -> Self
pub fn validate_cids(self, validate: bool) -> Self
Enable or disable CID validation
Sourcepub fn enable_compression(self, enable: bool) -> Self
pub fn enable_compression(self, enable: bool) -> Self
Enable or disable compression
Sourcepub fn compression_level(self, level: u8) -> Self
pub fn compression_level(self, level: u8) -> Self
Set compression level
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