pub trait Request:
Serialize
+ DeserializeOwned
+ Sealed {
type Response: Serialize + DeserializeOwned;
const METHOD: &'static str;
}Expand description
A request type, tied to its response type and method name, so a client cannot send one request and read another’s answer. Sealed: the list of requests is this crate’s.
Required Associated Constants§
Required Associated Types§
Sourcetype Response: Serialize + DeserializeOwned
type Response: Serialize + DeserializeOwned
What the peer answers with.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".