Trait meio_protocol::Protocol [−][src]
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.
Associated Types
type ToServer: ProtocolData
type ToServer: ProtocolData
The message type sent to a server (from a client).
type ToClient: ProtocolData
type ToClient: ProtocolData
The message type sent to a client (from a server).
type Codec: ProtocolCodec
type Codec: ProtocolCodec
The codec (serialization format) used to pack and unpack messages.