pub struct DeliveredSample {
pub writer_guid: Guid,
pub sequence_number: SequenceNumber,
pub payload: Arc<[u8]>,
pub kind: ChangeKind,
pub key_hash: Option<[u8; 16]>,
pub source_timestamp: Option<HeTimestamp>,
}Expand description
A sample delivered to the application.
Fields§
§writer_guid: GuidGUID of the writer the sample comes from. Makes multi-writer deduplication possible in the caller.
sequence_number: SequenceNumberSequence number in the writer.
payload: Arc<[u8]>Serialized payload (zero-copy via Arc::clone from the cache).
Payload.
kind: ChangeKindSpec §8.2.1.2 ChangeKind — Alive for normal samples,
NotAliveDisposed / NotAliveUnregistered /
NotAliveDisposedUnregistered for lifecycle markers that the
writer sent via dispose/unregister_instance.
Spec §9.6.3.9 PID_STATUS_INFO in the inline QoS.
key_hash: Option<[u8; 16]>PID_KEY_HASH from the inline QoS (Spec §9.6.4.8). For
lifecycle markers this is the identity of the disposed/
unregistered instance; for keyed-topic ALIVE samples optional
(some vendors send an inline hash, some don’t). None
if the writer does not supply a hash inline (typical for
keyless topics).
source_timestamp: Option<HeTimestamp>Source timestamp from the preceding INFO_TS submessage (DDSI-RTPS
§8.7.3), if the writer sent one. Feeds SampleInfo.source_timestamp and
DESTINATION_ORDER = BY_SOURCE_TIMESTAMP. None ⇒ the reader uses
reception order.
Trait Implementations§
Source§impl Clone for DeliveredSample
impl Clone for DeliveredSample
Source§fn clone(&self) -> DeliveredSample
fn clone(&self) -> DeliveredSample
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more