pub trait Command: Serialize {
type Response: DeserializeOwned;
const METHOD: &'static str;
// Provided method
fn send(
self,
cdp: &CDP,
session_id: Option<&str>,
) -> impl Future<Output = Result<Self::Response, CdpError>>
where Self: Sized { ... }
}Expand description
Trait for CDP commands
Required Associated Constants§
Required Associated Types§
Sourcetype Response: DeserializeOwned
type Response: DeserializeOwned
Response type for this command
Provided Methods§
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.