Trait hyper::net::NetworkConnector [-]  [+] [src]

pub trait NetworkConnector {
    type Stream: NetworkStream + Send;

    fn connect(&mut self, host: &str, port: Port, scheme: &str) -> IoResult<Stream>;
}

A connector creates a NetworkStream.

Associated Types

type Stream: NetworkStream + Send

Required Methods

fn connect(&mut self, host: &str, port: Port, scheme: &str) -> IoResult<Stream>

Connect to a remote address.

Implementors