pub trait Protocol: Send + 'static {
type ToServer: ProtocolData;
type ToClient: ProtocolData;
type Codec: ProtocolCodec;
}
Expand description
The set of types for provide interaction capabilities for parties.
Required Associated Types§
Sourcetype ToServer: ProtocolData
type ToServer: ProtocolData
The message type sent to a server (from a client).
Sourcetype ToClient: ProtocolData
type ToClient: ProtocolData
The message type sent to a client (from a server).
Sourcetype Codec: ProtocolCodec
type Codec: ProtocolCodec
The codec (serialization format) used to pack and unpack messages.