Skip to main content

IngressResponseEncoder

Trait IngressResponseEncoder 

Source
pub trait IngressResponseEncoder<U>:
    Send
    + Sync
    + 'static
where 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§

Source

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".

Implementors§