pub enum Sample<D, K> {
Value(D),
Dispose(K),
}
Expand description
A data sample received from a WITH_KEY Topic without the associated metadata.
Replaces the use of valid_data
flag in SampleInfo of DataSample from the
DDS spec.
Implements the methods value
, map_value
, map_dispose
unwrap
and
as_ref
that correspond to methods of Result
,
which had been previously used for this purpose.
Variants§
Implementations§
Trait Implementations§
source§impl<D: PartialEq, K: PartialEq> PartialEq for Sample<D, K>
impl<D: PartialEq, K: PartialEq> PartialEq for Sample<D, K>
impl<D, K> StructuralPartialEq for Sample<D, K>
Auto Trait Implementations§
impl<D, K> Freeze for Sample<D, K>
impl<D, K> RefUnwindSafe for Sample<D, K>where
D: RefUnwindSafe,
K: RefUnwindSafe,
impl<D, K> Send for Sample<D, K>
impl<D, K> Sync for Sample<D, K>
impl<D, K> Unpin for Sample<D, K>
impl<D, K> UnwindSafe for Sample<D, K>where
D: UnwindSafe,
K: UnwindSafe,
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