pub struct BrokerMessage {
pub subject: String,
pub body: Vec<u8>,
pub reply_to: Option<String>,
}
Expand description
A message sent to or received from a broker
Fields§
§subject: String
§body: Vec<u8>
§reply_to: Option<String>
Trait Implementations§
Source§impl Clone for BrokerMessage
impl Clone for BrokerMessage
Source§fn clone(&self) -> BrokerMessage
fn clone(&self) -> BrokerMessage
Returns a duplicate 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 BrokerMessage
impl RefUnwindSafe for BrokerMessage
impl Send for BrokerMessage
impl Sync for BrokerMessage
impl Unpin for BrokerMessage
impl UnwindSafe for BrokerMessage
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