pub trait Command: Serialize + Method {
    type Response: DeserializeOwned + Debug;

    // Provided method
    fn response_from_value(response: Value) -> Result<Self::Response> { ... }
}
Expand description

Trait that all the request types have to implement.

Required Associated Types§

source

type Response: DeserializeOwned + Debug

The type of the response this request triggers on the chromium server

Provided Methods§

source

fn response_from_value(response: Value) -> Result<Self::Response>

deserialize the response from json

Object Safety§

This trait is not object safe.

Implementors§