Connector

Trait Connector 

Source
pub trait Connector: Send + Debug {
    type Output: Client;

    // Required method
    fn connect<'life0, 'async_trait>(
        &'life0 mut self,
        slave: Slave,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Establish a connection. The implementation must support calling Connector::connect multiple times.

Required Associated Types§

Required Methods§

Source

fn connect<'life0, 'async_trait>( &'life0 mut self, slave: Slave, ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Establish a connection.

Implementors§