pub trait Socket:
AsyncRead
+ AsyncWrite
+ 'static {
// Required method
fn connect(address: SocketAddr) -> Result<Pin<Box<dyn Socket + Send>>>
where Self: Sized;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".