Struct hyper::client::conn::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder to configure an HTTP connection.
After setting options, the builder is used to create a Handshake
future.
Methods
impl Builder
[src]
impl Builder
pub fn new() -> Builder
[src]
pub fn new() -> Builder
Creates a new connection builder.
pub fn handshake<T, B>(&self, io: T) -> Handshake<T, B> where
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
[src]
pub fn handshake<T, B>(&self, io: T) -> Handshake<T, B> where
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
Constructs a connection with the configured options and IO.
Trait Implementations
impl Clone for Builder
[src]
impl Clone for Builder
fn clone(&self) -> Builder
[src]
fn clone(&self) -> Builder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Builder
[src]
impl Debug for Builder