Connect

Trait Connect 

Source
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§

Source

type Connecting: Connecting + 'static

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

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.

Implementors§