pub struct BatchStats {
pub total_commands: usize,
pub total_batches: usize,
pub average_batch_size: f64,
pub commands_dropped: usize,
pub flush_timeouts: usize,
pub adaptive_adjustments: usize,
}Expand description
Statistics for batch processing
Fields§
§total_commands: usize§total_batches: usize§average_batch_size: f64§commands_dropped: usize§flush_timeouts: usize§adaptive_adjustments: usizeImplementations§
Source§impl BatchStats
impl BatchStats
pub fn record_batch(&mut self, batch_size: usize)
Trait Implementations§
Source§impl Clone for BatchStats
impl Clone for BatchStats
Source§impl Debug for BatchStats
impl Debug for BatchStats
Auto Trait Implementations§
impl Forget for BatchStats
impl Freeze for BatchStats
impl Move for BatchStats
impl RefUnwindSafe for BatchStats
impl Send for BatchStats
impl Sync for BatchStats
impl Unpin for BatchStats
impl UnsafeUnpin for BatchStats
impl UnwindSafe for BatchStats
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