pub struct ParticipantMessage {
pub participant: GuidPrefix,
pub kind: [u8; 4],
pub data: Vec<u8>,
}Expand description
ParticipantMessageData (9.6.3.1).
Fields§
§participant: GuidPrefixparticipantGuidPrefix: the participant that writes it.
kind: [u8; 4]kind: what it asserts (see kind).
data: Vec<u8>data.
Implementations§
Source§impl ParticipantMessage
impl ParticipantMessage
Sourcepub fn to_payload(&self, endianness: Endianness) -> Vec<u8> ⓘ
pub fn to_payload(&self, endianness: Endianness) -> Vec<u8> ⓘ
The serialized payload: the CDR encapsulation header, then the prefix, the kind and the data as a sequence of octets.
Sourcepub fn from_payload(bytes: &[u8]) -> Result<Self, DecodeError>
pub fn from_payload(bytes: &[u8]) -> Result<Self, DecodeError>
Reads a serialized payload.
Trait Implementations§
Source§impl Clone for ParticipantMessage
impl Clone for ParticipantMessage
Source§impl Debug for ParticipantMessage
impl Debug for ParticipantMessage
impl Eq for ParticipantMessage
Source§impl PartialEq for ParticipantMessage
impl PartialEq for ParticipantMessage
impl StructuralPartialEq for ParticipantMessage
Auto Trait Implementations§
impl Forget for ParticipantMessage
impl Freeze for ParticipantMessage
impl Move for ParticipantMessage
impl RefUnwindSafe for ParticipantMessage
impl Send for ParticipantMessagewhere
RawVecInner: Send,
impl Sync for ParticipantMessagewhere
RawVecInner: Sync,
impl Unpin for ParticipantMessage
impl UnsafeUnpin for ParticipantMessage
impl UnwindSafe for ParticipantMessagewhere
RawVecInner: 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