Trait tk_pool::Connect [] [src]

pub trait Connect {
    type Future: Future;
    fn connect(&mut self, address: SocketAddr) -> Self::Future;
}

This is a trait that is used for establishing a connection

Usually just passing a closure is good enough

Associated Types

A future retuned by connect method

Required Methods

Establish a connection to the specified address

Implementors