Enum rustdds::SampleState [−][src]
#[repr(u32)]
pub enum SampleState {
Read,
NotRead,
}
Expand description
indicates whether or not the corresponding data sample has already
been read by this DataReader
.
For each sample received, the middleware internally maintains a sample_state relative to each DataReader. The sample_state can either be READ or NOT_READ.
The sample_state will, in general, be different for each sample in the collection > returned by
read()
ortake()
.
See DDS spec v1.4 Section 2.2.2.5.4 and Section “2.2.2.5.1.2 Interpretation of the SampleInfo sample_state”.
Variants
Read
indicates that the DataReader has already accessed that sample by means of
read()
… or corresponding iterator.
NotRead
indicates that the DataReader has not accessed that sample before
Implementations
Trait Implementations
Return a slice that contains each variant exactly one.
Return the name of the type for debug formatting purposes. Read more
Auto Trait Implementations
impl RefUnwindSafe for SampleState
impl Send for SampleState
impl Sync for SampleState
impl Unpin for SampleState
impl UnwindSafe for SampleState
Blanket Implementations
Mutably borrows from an owned value. Read more