pub trait IngressResponseEncoder<U>:
Send
+ Sync
+ 'staticwhere
U: Data,{
// Required method
fn encode_response(
&self,
payload_codec: RequestPlanePayloadCodec,
response: Option<U>,
complete_final: bool,
) -> impl Future<Output = Result<EncodedResponseFrame, PipelineError>> + Send;
}Expand description
Converts an ingress engine response into its complete on-wire frame.
Required Methods§
fn encode_response( &self, payload_codec: RequestPlanePayloadCodec, response: Option<U>, complete_final: bool, ) -> impl Future<Output = Result<EncodedResponseFrame, PipelineError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".