pub trait CSConfig:
Clone
+ Send
+ Sync {
type Client: CSTraitClient;
type Server: CSTraitServer;
// Required methods
fn client(&self) -> Self::Client;
fn server(&self, local_socket: SocketAddr) -> Self::Server;
}Required Associated Types§
type Client: CSTraitClient
type Server: CSTraitServer
Required Methods§
fn client(&self) -> Self::Client
fn server(&self, local_socket: SocketAddr) -> Self::Server
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.