pub enum ConsolidationMode {
None,
Monotonic,
Latest,
}
Expand description
The kind of consolidation.
Variants§
None
No consolidation applied: multiple samples may be received for the same key-timestamp.
Monotonic
Monotonic consolidation immediately forwards samples, except if one with an equal or more recent timestamp has already been sent with the same key.
This optimizes latency while potentially reducing bandwidth.
Note that this doesn’t cause re-ordering, but drops the samples for which a more recent timestamp has already been observed with the same key.
Latest
Holds back samples to only send the set of samples that had the highest timestamp for their key.
Trait Implementations§
Source§impl Clone for ConsolidationMode
impl Clone for ConsolidationMode
Source§fn clone(&self) -> ConsolidationMode
fn clone(&self) -> ConsolidationMode
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 ConsolidationMode
impl Debug for ConsolidationMode
Source§impl PartialEq for ConsolidationMode
impl PartialEq for ConsolidationMode
impl Copy for ConsolidationMode
impl Eq for ConsolidationMode
impl StructuralPartialEq for ConsolidationMode
Auto Trait Implementations§
impl Freeze for ConsolidationMode
impl RefUnwindSafe for ConsolidationMode
impl Send for ConsolidationMode
impl Sync for ConsolidationMode
impl Unpin for ConsolidationMode
impl UnwindSafe for ConsolidationMode
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