pub struct CastMessage {
pub namespace: String,
pub source: String,
pub destination: String,
pub payload: CastMessagePayload,
}
Expand description
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§
Source§impl Clone for CastMessage
impl Clone for CastMessage
Source§fn clone(&self) -> CastMessage
fn clone(&self) -> CastMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CastMessage
impl RefUnwindSafe for CastMessage
impl Send for CastMessage
impl Sync for CastMessage
impl Unpin for CastMessage
impl UnwindSafe for CastMessage
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