pub trait Connect: DnsTcpStream {
    fn connect_with_bind<'async_trait>(
        addr: SocketAddr,
        bind_addr: Option<SocketAddr>
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn connect<'async_trait>(
        addr: SocketAddr
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait
, { ... } }
Expand description

Trait for TCP connection

Required Methods

connect to tcp with address to connect from

Provided Methods

connect to tcp

Implementors