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: MessageIdentityEindeutige Sender-Identitaet pro Message.
MessageIdentity der Vorgaenger-Message — bei Replies + Finals
gesetzt, bei initialen Requests NIL (alle Bytes 0).
destination_participant_key: [u8; 16]Destination-Participant-GUID (16 byte). 0 = broadcast an alle matched Receiver.
destination_endpoint_key: [u8; 16]Destination-Endpoint-GUID (oder 0 fuer Participant-Wide).
source_endpoint_key: [u8; 16]Source-Endpoint-GUID.
message_class_id: Stringmessage_class_id-String (siehe class_id).
message_data: Vec<DataHolder>Sequenz von DataHolder — typischerweise EINER (z.B. ein
HandshakeMessageToken oder ein 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 (ohne PL_CDR-Encapsulation-Header — den fuegt der Wire-Layer separat an, weil ParticipantGenericMessage kein PL_CDR (ParameterList), sondern strukturiertes CDR ist).
Sourcepub fn from_cdr_le(bytes: &[u8]) -> SecurityResult<Self>
pub fn from_cdr_le(bytes: &[u8]) -> SecurityResult<Self>
Decode aus XCDR1-LE Bytes.
§Errors
BadArgument bei Truncation, ueberschrittenen DoS-Caps oder
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
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 ==.