pub trait Request {
type Arguments: Debug + Clone + Serialize + DeserializeOwned + Send + Sync;
type Response: Debug + Clone + Serialize + DeserializeOwned + Send + Sync;
const COMMAND: &'static str;
}
Expand description
Request is a request, with associated command, and argument and response types.
Required Associated Constants§
Required Associated Types§
type Arguments: Debug + Clone + Serialize + DeserializeOwned + Send + Sync
type Response: Debug + Clone + Serialize + DeserializeOwned + Send + Sync
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.