pub struct Aggregator { /* private fields */ }Implementations§
Source§impl Aggregator
impl Aggregator
Sourcepub fn new<H>(correlation_header: H, completion_size: usize) -> Aggregator
pub fn new<H>(correlation_header: H, completion_size: usize) -> Aggregator
Create a new Aggregator.
correlation_header– header key used to group messages (e.g. “corr” or “correlation_id”).completion_size– number of messages required before aggregation triggers.
Sourcepub fn clear_store(&self)
pub fn clear_store(&self)
Clear all stored partial groups. Intended for test isolation; not usually needed in production.
Trait Implementations§
Source§impl Clone for Aggregator
impl Clone for Aggregator
Source§fn clone(&self) -> Aggregator
fn clone(&self) -> Aggregator
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 Aggregator
impl Debug for Aggregator
Auto Trait Implementations§
impl Freeze for Aggregator
impl RefUnwindSafe for Aggregator
impl Send for Aggregator
impl Sync for Aggregator
impl Unpin for Aggregator
impl UnwindSafe for Aggregator
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