Struct rust_cast::message_manager::CastMessage [−][src]
pub struct CastMessage { pub namespace: String, pub source: String, pub destination: String, pub payload: CastMessagePayload, }
Base structure that represents messages that are exchanged between Receiver and Sender.
Fields
namespace: String
A namespace is a labeled protocol. That is, messages that are exchanged throughout the Cast ecosystem utilize namespaces to identify the protocol of the message being sent.
source: String
Unique identifier of the sender
application.
destination: String
Unique identifier of the receiver
application.
payload: CastMessagePayload
Payload data attached to the message (either string or binary).
Trait Implementations
impl Debug for CastMessage
[src]
impl Debug for CastMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CastMessage
[src]
impl Clone for CastMessage
fn clone(&self) -> CastMessage
[src]
fn clone(&self) -> CastMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for CastMessage
impl Send for CastMessage
impl Sync for CastMessage
impl Sync for CastMessage