pub trait Dial: 'static + Send {
type Stream: 'static + Send + AsyncRead + AsyncWrite;
// Required method
fn dial(&mut self) -> impl Future<Output = Result<Self::Stream>> + Send;
}
Expand description
Dials a connection to a server.
Required Associated Types§
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.