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