pub struct OutboundMessage {
pub message_type: MessageType,
pub flags: u8,
pub body: Vec<u8>,
}Expand description
Fully encoded outbound message body, before correlation ID assignment.
This is the CBOR protocol envelope body that belongs after the binary frame header. It is mostly useful for transport adapters, tests, and language bindings.
Fields§
§message_type: MessageTypeProtocol message type.
flags: u8Frame flags derived from the message type.
body: Vec<u8>CBOR-encoded protocol envelope body.
Implementations§
Source§impl OutboundMessage
impl OutboundMessage
Sourcepub fn into_raw_frame(self, id: u32) -> RawFrame
pub fn into_raw_frame(self, id: u32) -> RawFrame
Convert the outbound message into a raw frame with an assigned ID.
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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