pub enum HistoryKind {
KeepAll,
KeepLast {
depth: usize,
},
}Expand description
History-QoS (DDSI-RTPS §8.7.4, Spec Table 17).
Variants§
KeepAll
The cache is hard-bounded; on overflow insert returns a
CapacityExceeded error. Useful for no-loss scenarios in
which the writer prefers to block rather than discard data
(file transfer, logging).
KeepLast
The cache holds at most depth newest samples. On overflow the
oldest sample drops out automatically — the writer insert
never fails due to capacity. The spec default for DDS.
Trait Implementations§
Source§impl Clone for HistoryKind
impl Clone for HistoryKind
Source§fn clone(&self) -> HistoryKind
fn clone(&self) -> HistoryKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HistoryKind
Source§impl Debug for HistoryKind
impl Debug for HistoryKind
impl Eq for HistoryKind
Source§impl PartialEq for HistoryKind
impl PartialEq for HistoryKind
impl StructuralPartialEq for HistoryKind
Auto Trait Implementations§
impl Freeze for HistoryKind
impl RefUnwindSafe for HistoryKind
impl Send for HistoryKind
impl Sync for HistoryKind
impl Unpin for HistoryKind
impl UnsafeUnpin for HistoryKind
impl UnwindSafe for HistoryKind
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