[−][src]Trait trust_dns_proto::tcp::Connect
Trait for TCP connection
Associated Types
type Transport: AsyncRead + AsyncWrite + Send + Unpin
TcpSteam
Required methods
#[must_use]fn connect<'async_trait>(
addr: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>> where
Self: 'async_trait,
addr: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>> where
Self: 'async_trait,
connect to tcp