pub trait Command: Serialize {
type Returns: DeserializeOwned;
const METHOD: &'static str;
}Expand description
A CDP command, carrying its own method name and result type.
Implemented by every *Params struct in crate::protocol.
Required Associated Constants§
Required Associated Types§
Sourcetype Returns: DeserializeOwned
type Returns: DeserializeOwned
What the browser answers with, or NoReturns when it answers with
nothing.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".