pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for Config
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn min_chunk_size(self, size: usize) -> Self
pub fn min_chunk_size(self, size: usize) -> Self
Set the minimum chunk size
Sourcepub fn max_chunk_size(self, size: usize) -> Self
pub fn max_chunk_size(self, size: usize) -> Self
Set the maximum chunk size
Sourcepub fn chunking_factor(self, factor: u32) -> Self
pub fn chunking_factor(self, factor: u32) -> Self
Set the chunking factor
Sourcepub fn node_cache_max_nodes(self, max_nodes: usize) -> Self
pub fn node_cache_max_nodes(self, max_nodes: usize) -> Self
Set the maximum number of decoded nodes retained in each manager cache.
Use 0 to disable node caching. Omit this setting to keep the cache
unbounded.
Sourcepub fn node_cache_max_bytes(self, max_bytes: usize) -> Self
pub fn node_cache_max_bytes(self, max_bytes: usize) -> Self
Set the maximum serialized-node bytes retained in each manager cache.
Use 0 to disable node caching. Omit this setting to keep the cache
unbounded by bytes.
Sourcepub fn unbounded_node_cache(self) -> Self
pub fn unbounded_node_cache(self) -> Self
Keep each manager’s decoded-node cache unbounded.
Trait Implementations§
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 UnsafeUnpin 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