pub struct ParticipantGenericMessage {
pub message_identity: MessageIdentity,
pub related_message_identity: MessageIdentity,
pub destination_participant_key: [u8; 16],
pub destination_endpoint_key: [u8; 16],
pub source_endpoint_key: [u8; 16],
pub message_class_id: String,
pub message_data: Vec<DataHolder>,
}Expand description
ParticipantGenericMessage (Spec §7.5.5 Tab.10).
Fields§
§message_identity: MessageIdentityUnique sender identity per message.
MessageIdentity of the predecessor message — set for replies + finals,
NIL (all bytes 0) for initial requests.
destination_participant_key: [u8; 16]Destination participant GUID (16 bytes). 0 = broadcast to all matched receivers.
destination_endpoint_key: [u8; 16]Destination endpoint GUID (or 0 for participant-wide).
source_endpoint_key: [u8; 16]Source-Endpoint-GUID.
message_class_id: Stringmessage_class_id string (see class_id).
message_data: Vec<DataHolder>Sequence of DataHolder — typically ONE (e.g. a
HandshakeMessageToken or a CryptoToken bundle).
Implementations§
Source§impl ParticipantGenericMessage
impl ParticipantGenericMessage
Sourcepub fn to_cdr_le(&self) -> Vec<u8> ⓘ
pub fn to_cdr_le(&self) -> Vec<u8> ⓘ
Encode → XCDR1-LE bytes (without the PL_CDR encapsulation header — the wire layer appends that separately, because ParticipantGenericMessage is not PL_CDR (ParameterList) but structured CDR).
Sourcepub fn from_cdr_le(bytes: &[u8]) -> SecurityResult<Self>
pub fn from_cdr_le(bytes: &[u8]) -> SecurityResult<Self>
Decode from XCDR1-LE bytes.
§Errors
BadArgument on truncation, exceeded DoS caps, or
non-UTF-8 in message_class_id.
Trait Implementations§
Source§impl Clone for ParticipantGenericMessage
impl Clone for ParticipantGenericMessage
Source§fn clone(&self) -> ParticipantGenericMessage
fn clone(&self) -> ParticipantGenericMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParticipantGenericMessage
impl Debug for ParticipantGenericMessage
Source§impl Default for ParticipantGenericMessage
impl Default for ParticipantGenericMessage
Source§fn default() -> ParticipantGenericMessage
fn default() -> ParticipantGenericMessage
impl Eq for ParticipantGenericMessage
Source§impl PartialEq for ParticipantGenericMessage
impl PartialEq for ParticipantGenericMessage
Source§fn eq(&self, other: &ParticipantGenericMessage) -> bool
fn eq(&self, other: &ParticipantGenericMessage) -> bool
self and other values to be equal, and is used by ==.