pub trait Message: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static {
type Response: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static;
}
Expand description
This trait should be implemented by all messages your application wants to handle. It specifies which data type should be sent as a response to this message in the RPC protocol.