pub struct EncodedMessage {
pub message_type: String,
pub payload: Vec<u8>,
}Expand description
Already-encoded application payload, separate from the outer envelope.
Fields§
§message_type: StringApplication wire name.
payload: Vec<u8>Exact CBOR payload bytes; never normalized.
Implementations§
Trait Implementations§
Source§impl<P: Protocol> IntoOutboundMessage<P> for EncodedMessage
impl<P: Protocol> IntoOutboundMessage<P> for EncodedMessage
Source§fn into_outbound(
self,
ready: &P::Ready,
codec: &dyn EnvelopeCodec,
) -> ClientResult<OutboundMessage>
fn into_outbound( self, ready: &P::Ready, codec: &dyn EnvelopeCodec, ) -> ClientResult<OutboundMessage>
Validate before admission and encode only the layer supplied by the caller.
Auto Trait Implementations§
impl Freeze for EncodedMessage
impl RefUnwindSafe for EncodedMessage
impl Send for EncodedMessage
impl Sync for EncodedMessage
impl Unpin for EncodedMessage
impl UnsafeUnpin for EncodedMessage
impl UnwindSafe for EncodedMessage
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