Trait hyper::net::NetworkConnector
[-] [+]
[src]
pub trait NetworkConnector { type Stream: NetworkStream + Send; fn connect(&mut self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>; }
A connector creates a NetworkStream.
Associated Types
type Stream: NetworkStream + Send
Type of Stream to create
Required Methods
fn connect(&mut self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>
Connect to a remote address.
Implementors
impl<'v> NetworkConnector for HttpConnector<'v>