pub trait SocketAdapterFactory {
type Connect: Socket;
type Adapter: SocketAdapter<Connect = Self::Connect>;
// Required method
fn get_instance(&self) -> Self::Adapter;
}
Expand description
Tcp连接适配器工厂
pub trait SocketAdapterFactory {
type Connect: Socket;
type Adapter: SocketAdapter<Connect = Self::Connect>;
// Required method
fn get_instance(&self) -> Self::Adapter;
}
Tcp连接适配器工厂