pub trait AsyncConnect {
type Connection;
type Fut: Future<Output = Result<Self::Connection, Error>> + Send + Sync;
// Required method
fn connect(&self) -> Self::Fut;
}Expand description
Establish a connection asynchronously.
Required Associated Types§
Sourcetype Connection
type Connection
The type of an established connection.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".