pub struct OutgoingEnvelope { /* private fields */ }
Expand description
Outgoing enveloped message.
Implementations§
Source§impl OutgoingEnvelope
impl OutgoingEnvelope
Sourcepub fn new(
payload: &str,
properties: OutgoingEnvelopeProperties,
destination: Destination,
) -> Self
pub fn new( payload: &str, properties: OutgoingEnvelopeProperties, destination: Destination, ) -> Self
Builds an OutgoingEnvelope.
§Arguments
payload
– payload serialized to string,properties
– enveloped properties.destination
– Destination of the message.
Trait Implementations§
Source§impl Debug for OutgoingEnvelope
impl Debug for OutgoingEnvelope
Auto Trait Implementations§
impl Freeze for OutgoingEnvelope
impl RefUnwindSafe for OutgoingEnvelope
impl Send for OutgoingEnvelope
impl Sync for OutgoingEnvelope
impl Unpin for OutgoingEnvelope
impl UnwindSafe for OutgoingEnvelope
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