pub trait IngressRequestDecoder<T>:
Send
+ Sync
+ 'staticwhere
T: Data,{
// Required method
fn decode_request(
&self,
payload_codec: RequestPlanePayloadCodec,
bytes: Bytes,
) -> impl Future<Output = Result<T, PipelineError>> + Send;
}Expand description
Converts request-plane bytes into the item consumed by an ingress engine.
Required Methods§
fn decode_request( &self, payload_codec: RequestPlanePayloadCodec, bytes: Bytes, ) -> impl Future<Output = Result<T, PipelineError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".