Enum zenoh_protocol::zenoh::query::Consolidation
source · #[repr(u8)]pub enum Consolidation {
Auto = 0,
None = 1,
Monotonic = 2,
Latest = 3,
Unique = 4,
}Expand description
The kind of consolidation.
Variants§
Auto = 0
Apply automatic consolidation based on queryable’s preferences
None = 1
No consolidation applied: multiple samples may be received for the same key-timestamp.
Monotonic = 2
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 = 3
Holds back samples to only send the set of samples that had the highest timestamp for their key.
Unique = 4
Remove the duplicates of any samples based on the their timestamp.
Trait Implementations§
source§impl Clone for Consolidation
impl Clone for Consolidation
source§fn clone(&self) -> Consolidation
fn clone(&self) -> Consolidation
Returns a copy 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 Consolidation
impl Debug for Consolidation
source§impl Default for Consolidation
impl Default for Consolidation
source§fn default() -> Consolidation
fn default() -> Consolidation
Returns the “default value” for a type. Read more
source§impl From<ConsolidationMode> for Consolidation
impl From<ConsolidationMode> for Consolidation
source§fn from(val: ConsolidationMode) -> Self
fn from(val: ConsolidationMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for Consolidation
impl PartialEq for Consolidation
source§fn eq(&self, other: &Consolidation) -> bool
fn eq(&self, other: &Consolidation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for Consolidation
impl Eq for Consolidation
impl StructuralPartialEq for Consolidation
Auto Trait Implementations§
impl Freeze for Consolidation
impl RefUnwindSafe for Consolidation
impl Send for Consolidation
impl Sync for Consolidation
impl Unpin for Consolidation
impl UnwindSafe for Consolidation
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