pub struct BatchProcessor { /* private fields */ }Expand description
Batch processor for WebSocket messages
Implementations§
Source§impl BatchProcessor
impl BatchProcessor
Sourcepub fn update_metrics(&self, batch_size: usize, processing_time_ns: u64)
pub fn update_metrics(&self, batch_size: usize, processing_time_ns: u64)
Update batch metrics after processing
Sourcepub fn get_metrics(&self) -> BatchProcessingMetrics
pub fn get_metrics(&self) -> BatchProcessingMetrics
Get current batch metrics
Sourcepub const fn batch_size(&self) -> usize
pub const fn batch_size(&self) -> usize
Get the configured batch size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchProcessor
impl !RefUnwindSafe for BatchProcessor
impl Send for BatchProcessor
impl Sync for BatchProcessor
impl Unpin for BatchProcessor
impl !UnwindSafe for BatchProcessor
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