Trait proxies::connector::Connector [−][src]
pub trait Connector { type Transport: AsyncRead + AsyncWrite; fn connect_tcp<'life0, 'life1, 'async_trait>(
&'life0 self,
addr: &'life1 Address
) -> Pin<Box<dyn Future<Output = Result<Self::Transport, ProxyError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Expand description
transport connector
Associated Types
type Transport: AsyncRead + AsyncWrite
Required methods
fn connect_tcp<'life0, 'life1, 'async_trait>(
&'life0 self,
addr: &'life1 Address
) -> Pin<Box<dyn Future<Output = Result<Self::Transport, ProxyError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,