Enum rustdds::SampleState
source · [−]#[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
sourceimpl SampleState
impl SampleState
Trait Implementations
sourceimpl BitAnd<SampleState> for SampleState
impl BitAnd<SampleState> for SampleState
sourceimpl BitFlag for SampleState
impl BitFlag for SampleState
sourceimpl BitOr<SampleState> for SampleState
impl BitOr<SampleState> for SampleState
sourceimpl BitXor<SampleState> for SampleState
impl BitXor<SampleState> for SampleState
sourceimpl Clone for SampleState
impl Clone for SampleState
sourcefn clone(&self) -> SampleState
fn clone(&self) -> SampleState
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 SampleState
impl Debug for SampleState
sourceimpl Not for SampleState
impl Not for SampleState
sourceimpl PartialEq<SampleState> for SampleState
impl PartialEq<SampleState> for SampleState
sourceimpl RawBitFlags for SampleState
impl RawBitFlags for SampleState
sourceconst DEFAULT: Self::Numeric
const DEFAULT: Self::Numeric
The value used by the Default implementation. Equivalent to EMPTY, unless customized. Read more
sourceconst FLAG_LIST: &'static [Self]
const FLAG_LIST: &'static [Self]
A slice that contains each variant exactly one.
sourceconst 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 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more