Trait netapp::message::Message

source ·
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.

Required Associated Types§

source

type Response: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static

The type of the response that is sent in response to this message

Implementors§