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
sourceimpl Clone for ConsolidationMode
impl Clone for ConsolidationMode
sourcefn clone(&self) -> ConsolidationMode
fn clone(&self) -> ConsolidationMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConsolidationMode
impl Debug for ConsolidationMode
sourceimpl PartialEq<ConsolidationMode> for ConsolidationMode
impl PartialEq<ConsolidationMode> for ConsolidationMode
sourcefn eq(&self, other: &ConsolidationMode) -> bool
fn eq(&self, other: &ConsolidationMode) -> bool
impl Copy for ConsolidationMode
impl Eq for ConsolidationMode
impl StructuralEq for ConsolidationMode
impl StructuralPartialEq for ConsolidationMode
Auto Trait Implementations
impl RefUnwindSafe for ConsolidationMode
impl Send for ConsolidationMode
impl Sync for ConsolidationMode
impl Unpin for ConsolidationMode
impl UnwindSafe for ConsolidationMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more