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

pub trait Connect where
    Self: Sized
{ type Transport: AsyncRead + AsyncWrite + Send; 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
; }

Trait for TCP connection

Associated Types

type Transport: AsyncRead + AsyncWrite + Send

TcpSteam

Loading content...

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, 

connect to tcp

Loading content...

Implementations on Foreign Types

impl Connect for TokioTcpStream[src]

type Transport = TokioTcpStream

Loading content...

Implementors

Loading content...