pub trait Command {
type Params: Serialize;
type Output;
const METHOD: &'static str;
// Required method
fn decode(response: CdpResponse) -> Result<Self::Output>;
}Expand description
Typed command interface.
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn decode(response: CdpResponse) -> Result<Self::Output>
fn decode(response: CdpResponse) -> Result<Self::Output>
Decode the protocol response into the typed output.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.