#[repr(u32)]pub enum SampleState {
Read = 1,
NotRead = 2,
}
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 = 1
indicates that the DataReader has already accessed that sample by means of
read()
… or corresponding iterator.
NotRead = 2
indicates that the DataReader has not accessed that sample before
Implementations§
Trait Implementations§
Source§impl BitAnd for SampleState
impl BitAnd for SampleState
Source§impl BitFlag for SampleState
impl BitFlag for SampleState
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags
with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags
if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags
unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for SampleState
impl BitOr for SampleState
Source§impl BitXor for SampleState
impl BitXor for SampleState
Source§impl Clone for SampleState
impl Clone for SampleState
Source§fn clone(&self) -> SampleState
fn clone(&self) -> SampleState
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 SampleState
impl Debug for SampleState
Source§impl Not for SampleState
impl Not for SampleState
Source§impl PartialEq for SampleState
impl PartialEq for SampleState
Source§impl RawBitFlags for SampleState
impl RawBitFlags for SampleState
Source§const EMPTY: Self::Numeric = {transmute(0x00000000): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00000000): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
Source§const DEFAULT: Self::Numeric = {transmute(0x00000000): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00000000): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
Source§const ALL_BITS: Self::Numeric = {transmute(0x00000003): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x00000003): <dds::sampleinfo::SampleState as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
Source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<SampleState>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<SampleState>"
The name of the type for debug formatting purposes. Read more
impl Copy for SampleState
impl Eq for SampleState
impl StructuralPartialEq for SampleState
Auto Trait Implementations§
impl Freeze for SampleState
impl RefUnwindSafe for SampleState
impl Send for SampleState
impl Sync for SampleState
impl Unpin for SampleState
impl UnwindSafe for SampleState
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