Protocol

Trait Protocol 

Source
pub trait Protocol:
    Clone
    + Send
    + Sync
    + 'static {
    type Client: ProtocolClient;
    type Server: ProtocolServer;
}
Expand description

The protocol used for the communications.

Required Associated Types§

Source

type Client: ProtocolClient

The client implementation for the current protocol.

Source

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.

Implementors§