pub struct SampleIdentity {
pub writer_guid: Guid,
pub sequence_number: SequenceNumber,
}Expand description
The identity of a sample: its writer and its sequence number
(SampleIdentity, DDS-RPC 1.0, 7.5.1.1.1). A reply carries that of
its request in-line, as PID_RELATED_SAMPLE_IDENTITY (7.8.2).
Fields§
§writer_guid: Guidwriter_guid.
sequence_number: SequenceNumbersequence_number.
Implementations§
Source§impl SampleIdentity
impl SampleIdentity
Sourcepub const INVALID: SampleIdentity
pub const INVALID: SampleIdentity
RELATED_SAMPLE_IDENTITY_INVALID: GUID_UNKNOWN and
SEQUENCENUMBER_UNKNOWN.
Sourcepub fn to_bytes(&self, endianness: Endianness) -> Vec<u8> ⓘ
pub fn to_bytes(&self, endianness: Endianness) -> Vec<u8> ⓘ
The CDR serialization (24 octets) in endianness.
Sourcepub fn from_bytes(
bytes: &[u8],
endianness: Endianness,
) -> Result<Self, DecodeError>
pub fn from_bytes( bytes: &[u8], endianness: Endianness, ) -> Result<Self, DecodeError>
Reads the CDR serialization in endianness.
Trait Implementations§
Source§impl Clone for SampleIdentity
impl Clone for SampleIdentity
impl Copy for SampleIdentity
Source§impl Debug for SampleIdentity
impl Debug for SampleIdentity
impl Eq for SampleIdentity
Source§impl Hash for SampleIdentity
impl Hash for SampleIdentity
Source§impl Ord for SampleIdentity
impl Ord for SampleIdentity
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SampleIdentity
impl PartialEq for SampleIdentity
Source§impl PartialOrd for SampleIdentity
impl PartialOrd for SampleIdentity
impl StructuralPartialEq for SampleIdentity
Auto Trait Implementations§
impl Forget for SampleIdentity
impl Freeze for SampleIdentity
impl Move 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