pub trait EndpointConnect: Sized + Send {
    type Connecting: Connecting;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn connect<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Self::Connecting, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn connect<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Self::Connecting, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§