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

    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

Type of transport produced by the connection.

Required Methods

Implementors