pub trait Request {
type Params: Serialize + DeserializeOwned;
type Result: Serialize + DeserializeOwned;
const METHOD: &'static str;
}Expand description
A request: a message that expects a response.
Required Associated Constants§
Required Associated Types§
Sourcetype Params: Serialize + DeserializeOwned
type Params: Serialize + DeserializeOwned
Parameters sent with the request.
Sourcetype Result: Serialize + DeserializeOwned
type Result: Serialize + DeserializeOwned
Value returned on success.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".