pub trait TcpClientCallBack {
// Required methods
async fn conn(&self);
async fn dis_conn(&self);
async fn recv(&self, buf: &[u8]);
async fn err(&self, err: SocketErr);
}Expand description
tcp client callback
Required Methods§
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.