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.