pub trait Command {
type Request: Decode;
// Required method
async fn serve(
ctx: IoContext<Accepted, Bare>,
req: Self::Request,
res: &mut Resources<'_>,
) -> Outcome;
}Expand description
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".