Struct rustdds::SampleInfo
source · pub struct SampleInfo { /* private fields */ }
Expand description
SampleInfo is metadata attached to each received data sample. It exists only at the receiving end of DDS, and is (mostly) generated by DDS.
Some of the SampleInfo field description texts are quoted from the DDS Specification.
Implementations§
source§impl SampleInfo
impl SampleInfo
sourcepub fn source_timestamp(&self) -> Option<Timestamp>
pub fn source_timestamp(&self) -> Option<Timestamp>
Source timestamp is the timestamp that was supplied by the DataWriter that sent this sample. It is optional to timestamp samples when writing.
pub fn sample_state(&self) -> SampleState
pub fn view_state(&self) -> ViewState
pub fn instance_state(&self) -> InstanceState
pub fn disposed_generation_count(&self) -> i32
pub fn no_writers_generation_count(&self) -> i32
pub fn sample_rank(&self) -> i32
pub fn generation_rank(&self) -> i32
pub fn absolute_generation_rank(&self) -> i32
sourcepub fn publication_handle(&self) -> GUID
pub fn publication_handle(&self) -> GUID
publication_handle identifies the DataWriter that modified the instance (i.e. wrote this sample)
pub fn writer_guid(&self) -> GUID
pub fn sample_identity(&self) -> SampleIdentity
Trait Implementations§
source§impl Clone for SampleInfo
impl Clone for SampleInfo
source§fn clone(&self) -> SampleInfo
fn clone(&self) -> SampleInfo
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 SampleInfo
impl Debug for SampleInfo
source§impl PartialEq for SampleInfo
impl PartialEq for SampleInfo
source§fn eq(&self, other: &SampleInfo) -> bool
fn eq(&self, other: &SampleInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SampleInfo
impl StructuralPartialEq for SampleInfo
Auto Trait Implementations§
impl Freeze for SampleInfo
impl RefUnwindSafe for SampleInfo
impl Send for SampleInfo
impl Sync for SampleInfo
impl Unpin for SampleInfo
impl UnwindSafe for SampleInfo
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