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
sourceimpl 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
sourceimpl Clone for SampleInfo
impl Clone for SampleInfo
sourcefn clone(&self) -> SampleInfo
fn clone(&self) -> SampleInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SampleInfo
impl Debug for SampleInfo
sourceimpl PartialEq<SampleInfo> for SampleInfo
impl PartialEq<SampleInfo> for SampleInfo
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SampleInfo) -> bool
fn ne(&self, other: &SampleInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for SampleInfo
Auto Trait Implementations
impl RefUnwindSafe for SampleInfo
impl Send for SampleInfo
impl Sync for SampleInfo
impl Unpin for SampleInfo
impl UnwindSafe for SampleInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more