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

pub trait Connect: DnsTcpStream {
#[must_use]    fn connect<'async_trait>(
        addr: SocketAddr
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }

Trait for TCP connection

Required methods

#[must_use]fn connect<'async_trait>(
    addr: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

connect to tcp

Loading content...

Implementors

Loading content...