pub trait IntoOutboundMessage<P: Protocol> {
// Required method
fn into_outbound(
self,
ready: &P::Ready,
codec: &dyn EnvelopeCodec,
) -> ClientResult<OutboundMessage>;
}Expand description
Prepare a named message using one protocol’s availability gates and codec.
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".