Struct rustdds::ReadCondition
source · [−]pub struct ReadCondition { /* private fields */ }
Expand description
This is used to specify which samples are to be read or taken from
a Datareader
To be selected, the current state of the sample must be included in the corresponding bitflags. See DDS Specification 1.4 Section “2.2.2.5.8 ReadCondition”
Implementations
sourceimpl ReadCondition
impl ReadCondition
sourcepub fn any() -> ReadCondition
pub fn any() -> ReadCondition
Condition reads all available samples
sourcepub fn not_read() -> ReadCondition
pub fn not_read() -> ReadCondition
Condition reads samples that are not already read
pub fn sample_state_mask(&self) -> &BitFlags<SampleState>
pub fn view_state_mask(&self) -> &BitFlags<ViewState>
pub fn instance_state_mask(&self) -> &BitFlags<InstanceState>
Trait Implementations
sourceimpl Clone for ReadCondition
impl Clone for ReadCondition
sourcefn clone(&self) -> ReadCondition
fn clone(&self) -> ReadCondition
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 ReadCondition
impl Debug for ReadCondition
sourceimpl PartialEq<ReadCondition> for ReadCondition
impl PartialEq<ReadCondition> for ReadCondition
sourcefn eq(&self, other: &ReadCondition) -> bool
fn eq(&self, other: &ReadCondition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReadCondition) -> bool
fn ne(&self, other: &ReadCondition) -> bool
This method tests for !=
.
impl Copy for ReadCondition
impl StructuralPartialEq for ReadCondition
Auto Trait Implementations
impl RefUnwindSafe for ReadCondition
impl Send for ReadCondition
impl Sync for ReadCondition
impl Unpin for ReadCondition
impl UnwindSafe for ReadCondition
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more