pub trait Command: Serialize + Method {
type Response: DeserializeOwned + Debug;
// Provided method
fn response_from_value(response: Value) -> Result<Self::Response, Error> { ... }
}
Expand description
Trait that all the request types have to implement.
Required Associated Types§
Sourcetype Response: DeserializeOwned + Debug
type Response: DeserializeOwned + Debug
The type of the response this request triggers on the chromium server
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.