pub struct SampleIdentity {
pub writer_guid: [u8; 16],
pub sequence_number: u64,
}Expand description
Spec §7.5.1.1.1 — Identifies a sample by writer GUID + sequence number.
Fields§
§writer_guid: [u8; 16]16-byte GUID des absendenden Writers.
sequence_number: u64Sequence-Number des Samples (uint64, RTPS-konvention 1-basiert).
Implementations§
Source§impl SampleIdentity
impl SampleIdentity
Sourcepub fn from_cdr_le(bytes: &[u8]) -> RpcResult<Self>
pub fn from_cdr_le(bytes: &[u8]) -> RpcResult<Self>
Sourcepub fn from_cdr_be(bytes: &[u8]) -> RpcResult<Self>
pub fn from_cdr_be(bytes: &[u8]) -> RpcResult<Self>
Trait Implementations§
Source§impl Clone for SampleIdentity
impl Clone for SampleIdentity
Source§fn clone(&self) -> SampleIdentity
fn clone(&self) -> SampleIdentity
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 moreSource§impl Debug for SampleIdentity
impl Debug for SampleIdentity
Source§impl Default for SampleIdentity
impl Default for SampleIdentity
Source§fn default() -> SampleIdentity
fn default() -> SampleIdentity
Returns the “default value” for a type. Read more
Source§impl Hash for SampleIdentity
impl Hash for SampleIdentity
Source§impl PartialEq for SampleIdentity
impl PartialEq for SampleIdentity
Source§fn eq(&self, other: &SampleIdentity) -> bool
fn eq(&self, other: &SampleIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SampleIdentity
impl Eq for SampleIdentity
impl StructuralPartialEq for SampleIdentity
Auto Trait Implementations§
impl Freeze for SampleIdentity
impl RefUnwindSafe for SampleIdentity
impl Send for SampleIdentity
impl Sync for SampleIdentity
impl Unpin for SampleIdentity
impl UnsafeUnpin for SampleIdentity
impl UnwindSafe for SampleIdentity
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