pub struct Sample {
pub topic: String,
pub type_name: String,
pub payload: Vec<u8>,
pub timestamp_ns: u64,
pub sequence: u64,
pub source_guid: [u8; 16],
}Expand description
A persisted DDS sample
Fields§
§topic: StringTopic name
type_name: StringType name
payload: Vec<u8>Serialized payload (CDR)
timestamp_ns: u64Timestamp (Unix nanoseconds)
sequence: u64Sequence number
source_guid: [u8; 16]Source GUID (participant ID)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ReceivedSample> for Sample
impl From<ReceivedSample> for Sample
Source§fn from(rs: ReceivedSample) -> Self
fn from(rs: ReceivedSample) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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