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
'staticlifetime to be compatible with actor’s handlers.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".