pub trait Connect: Send {
type Connecting: Connecting + 'static;
type Error: Error + Send + Sync + 'static;
// Required method
fn connect(
&self,
url: &str,
) -> impl Future<Output = Result<Self::Connecting, Self::Error>> + Send;
}Required Associated Types§
type Connecting: Connecting + 'static
type Error: Error + Send + Sync + 'static
Required Methods§
fn connect( &self, url: &str, ) -> impl Future<Output = Result<Self::Connecting, Self::Error>> + Send
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.