Trait Connector

Source
pub trait Connector {
    type Transport: Transport + 'static;

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

Interface that performs the connection to produce a Transport for use by the Client.

Required Associated Types§

Source

type Transport: Transport + 'static

Type of transport produced by the connection.

Required Methods§

Source

fn connect<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§