pub struct BatchBuilderConfig {
pub max_batch_size: usize,
pub max_memory_usage: usize,
pub coalescing_strategy: CoalescingStrategy,
pub auto_flush: bool,
pub group_by_type: bool,
}
Expand description
Batch builder configuration
Fields§
§max_batch_size: usize
Maximum size of a single batch
max_memory_usage: usize
Maximum memory usage in bytes
coalescing_strategy: CoalescingStrategy
Coalescing strategy
auto_flush: bool
Auto-flush when batch is full
group_by_type: bool
Group operations by type for better performance
Implementations§
Trait Implementations§
Source§impl Clone for BatchBuilderConfig
impl Clone for BatchBuilderConfig
Source§fn clone(&self) -> BatchBuilderConfig
fn clone(&self) -> BatchBuilderConfig
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 BatchBuilderConfig
impl Debug for BatchBuilderConfig
Source§impl Default for BatchBuilderConfig
impl Default for BatchBuilderConfig
Source§impl From<&BatchBuilderConfig> for BatchConfig
Create a batch configuration from builder config
impl From<&BatchBuilderConfig> for BatchConfig
Create a batch configuration from builder config
Source§fn from(builder_config: &BatchBuilderConfig) -> Self
fn from(builder_config: &BatchBuilderConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchBuilderConfig
impl RefUnwindSafe for BatchBuilderConfig
impl Send for BatchBuilderConfig
impl Sync for BatchBuilderConfig
impl Unpin for BatchBuilderConfig
impl UnwindSafe for BatchBuilderConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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