pub enum SampleStateKind {
NotRead,
Read,
}Expand description
SampleStateKind (DDS 1.4 §2.2.2.5.1.1) — maintained per reader.
Variants§
NotRead
Sample has never been delivered to the application via
read/take.
Read
Sample has already been delivered at least once via read
(after take it is gone, so this only matters for read).
Implementations§
Source§impl SampleStateKind
impl SampleStateKind
Sourcepub const fn is_not_read(&self) -> bool
pub const fn is_not_read(&self) -> bool
true if this is an as-yet-unread sample.
Trait Implementations§
Source§impl Clone for SampleStateKind
impl Clone for SampleStateKind
Source§fn clone(&self) -> SampleStateKind
fn clone(&self) -> SampleStateKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleStateKind
Source§impl Debug for SampleStateKind
impl Debug for SampleStateKind
Source§impl Default for SampleStateKind
impl Default for SampleStateKind
impl Eq for SampleStateKind
Source§impl Hash for SampleStateKind
impl Hash for SampleStateKind
Source§impl Ord for SampleStateKind
impl Ord for SampleStateKind
Source§fn cmp(&self, other: &SampleStateKind) -> Ordering
fn cmp(&self, other: &SampleStateKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SampleStateKind
impl PartialEq for SampleStateKind
Source§fn eq(&self, other: &SampleStateKind) -> bool
fn eq(&self, other: &SampleStateKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SampleStateKind
impl PartialOrd for SampleStateKind
impl StructuralPartialEq for SampleStateKind
Auto Trait Implementations§
impl Freeze for SampleStateKind
impl RefUnwindSafe for SampleStateKind
impl Send for SampleStateKind
impl Sync for SampleStateKind
impl Unpin for SampleStateKind
impl UnsafeUnpin for SampleStateKind
impl UnwindSafe for SampleStateKind
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