pub struct DurabilitySample {
pub topic: String,
pub instance_key: [u8; 16],
pub sequence: u64,
pub payload: Vec<u8>,
pub representation: u8,
pub big_endian: bool,
pub created_at: SystemTime,
pub source_guid: [u8; 16],
pub source_sequence: i64,
}Expand description
A stored durability sample. The (instance_key, sequence) pair is the
stable ordering key within a topic.
Fields§
§topic: StringTopic name.
instance_key: [u8; 16]Instance KeyHash (RTPS §9.6.4.8, 16 bytes).
sequence: u64Writer-assigned monotonic sequence number.
payload: Vec<u8>Encoded payload (XCDR2 serialized body).
representation: u8XCDR representation of payload from the encapsulation header (RTPS 2.5
§10.5): 0 = XCDR1 (CDR/PL_CDR), 1 = XCDR2 (CDR2/D_CDR2/PL_CDR2). The
replay writer re-declares it so a late-joiner reads the body with the
right alignment.
big_endian: boolWire byte order of payload: false = little-endian, true =
big-endian. A big-endian peer’s stored sample holds big-endian body
bytes; the replay writer must emit a matching _BE encap header
(otherwise a late-joiner mis-decodes). Defaults to little-endian.
created_at: SystemTimeSource/creation wall-clock timestamp.
source_guid: [u8; 16]GUID of the writer that originally emitted this sample (16 bytes). With
source_sequence this is the globally-unique source identity a
durability service uses to dedup a writer’s history against its live
stream, and across a service restart (O2 P5). All-zero when unknown.
source_sequence: i64The source writer’s RTPS sequence number for this sample (DDSI-RTPS
§8.3.5.4). -1 when the ingest path had no source sequence (intra-runtime
or pre-P5 stored samples), in which case it does not participate in
source-identity dedup.
Trait Implementations§
Source§impl Clone for DurabilitySample
impl Clone for DurabilitySample
Source§fn clone(&self) -> DurabilitySample
fn clone(&self) -> DurabilitySample
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more