Trait trust_dns_proto::tcp::Connect[][src]

pub trait Connect where
    Self: Sized
{ type Transport: AsyncRead + AsyncWrite + Send + Unpin; fn connect<'async_trait>(
        addr: SocketAddr
    ) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Expand description

Trait for TCP connection

Associated Types

TcpSteam

Required methods

connect to tcp

Implementors