Enum rustdds::SampleState
source · 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§
source§impl BitAnd<SampleState> for SampleState
impl BitAnd<SampleState> for SampleState
§type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
The resulting type after applying the
&
operator.source§impl BitFlag for SampleState
impl BitFlag for SampleState
source§impl BitOr<SampleState> for SampleState
impl BitOr<SampleState> for SampleState
§type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
The resulting type after applying the
|
operator.source§impl BitXor<SampleState> for SampleState
impl BitXor<SampleState> for SampleState
§type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
The resulting type after applying the
^
operator.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
§type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
type Output = BitFlags<SampleState, <SampleState as RawBitFlags>::Numeric>
The resulting type after applying the
!
operator.source§impl PartialEq<SampleState> for SampleState
impl PartialEq<SampleState> for SampleState
source§fn eq(&self, other: &SampleState) -> bool
fn eq(&self, other: &SampleState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 = _
const BITFLAGS_TYPE_NAME: &'static str = _
The name of the type for debug formatting purposes. Read more
impl Copy for SampleState
impl Eq for SampleState
impl StructuralEq for SampleState
impl StructuralPartialEq for SampleState
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§
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