Skip to main content

DurabilitySample

Struct DurabilitySample 

Source
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: String

Topic name.

§instance_key: [u8; 16]

Instance KeyHash (RTPS §9.6.4.8, 16 bytes).

§sequence: u64

Writer-assigned monotonic sequence number.

§payload: Vec<u8>

Encoded payload (XCDR2 serialized body).

§representation: u8

XCDR 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: bool

Wire 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: SystemTime

Source/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: i64

The 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

Source§

fn clone(&self) -> DurabilitySample

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DurabilitySample

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for DurabilitySample

Source§

impl PartialEq for DurabilitySample

Source§

fn eq(&self, other: &DurabilitySample) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DurabilitySample

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.