pub trait Protocol:
Clone
+ Send
+ Sync
+ 'static {
type Client: ProtocolClient;
type Server: ProtocolServer;
}Expand description
The protocol used for the communications.
Required Associated Types§
Sourcetype Client: ProtocolClient
type Client: ProtocolClient
The client implementation for the current protocol.
Sourcetype Server: ProtocolServer
type Server: ProtocolServer
The server implementation for the current protocol.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.