Trait meio_protocol::ProtocolData[][src]

pub trait ProtocolData: Serialize + DeserializeOwned + Debug + Send + 'static { }
Expand description

Generic procotol type.

The trait gives the following guarantees to protocol data type:

  • Data can be serialized and deserialized;
  • Instance can be sent to another thread (to be sent from a separate thread);
  • Be printable for debugging purposes;
  • Type has 'static lifetime to be compatible with actor’s handlers.

Implementors