pub trait IntoOutboundMessage<P>where
P: Protocol,{
// Required method
fn into_outbound(
self,
ready: &<P as Protocol>::Ready,
codec: &(dyn EnvelopeCodec + 'static),
) -> Result<OutboundMessage, ClientError>;
}Expand description
Prepare a named message using one protocol’s availability gates and codec.
Required Methods§
Sourcefn into_outbound(
self,
ready: &<P as Protocol>::Ready,
codec: &(dyn EnvelopeCodec + 'static),
) -> Result<OutboundMessage, ClientError>
fn into_outbound( self, ready: &<P as Protocol>::Ready, codec: &(dyn EnvelopeCodec + 'static), ) -> Result<OutboundMessage, ClientError>
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".