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

pub trait Connect where
    Self: Sized
{ type Transport: Read + Write + Send; type Future: Future<Item = Self::Transport, Error = Error> + Send; fn connect(addr: &SocketAddr) -> Self::Future; }

Trait for TCP connection

Associated Types

type Transport: Read + Write + Send

TcpSteam

type Future: Future<Item = Self::Transport, Error = Error> + Send

Future returned by connect

Loading content...

Required methods

fn connect(addr: &SocketAddr) -> Self::Future

connect to tcp

Loading content...

Implementations on Foreign Types

impl Connect for TokioTcpStream[src]

Loading content...

Implementors

Loading content...