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

pub trait NetworkConnector {
    type Stream: Into<Box<NetworkStream + Send>>;
    fn connect(&self,
               host: &str,
               port: u16,
               scheme: &str)
               -> Result<Self::Stream>; }

A connector creates a NetworkStream.

Associated Types

Type of Stream to create

Required Methods

Connect to a remote address.

Implementors