pub trait RequestDecoder: Send + Sync {
type Event: AppEvent;
// Required method
fn decode(
&self,
bytes: &[u8],
permission: Permission,
) -> Decoded<Self::Event>;
}Expand description
Decode an authenticated client frame into an application event the runtime can publish to the pipeline.
Stateless on the connection (the runtime carries connection-level
state — Permission, key_hash, etc. — and feeds the relevant
piece in per call). Implementors are typically zero-sized types.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".