[][src]Struct httpbis::ClientBuilder

pub struct ClientBuilder<C: TlsConnector = TlsConnector> {
    pub event_loop: Option<Handle>,
    pub addr: Option<AnySocketAddr>,
    pub tls: ClientTlsOption<C>,
    pub conf: ClientConf,
}

Builder for HTTP/2 client.

Client parameters can be specified only during construction, and later client cannot be reconfigured.

Fields

event_loop: Option<Handle>addr: Option<AnySocketAddr>tls: ClientTlsOption<C>conf: ClientConf

Implementations

impl ClientBuilder<TlsConnector>[src]

impl<C: TlsConnector> ClientBuilder<C>[src]

pub fn set_addr<S: ToSocketAddrs>(&mut self, addr: S) -> Result<()>[src]

Set the addr client connects to.

impl<C: TlsConnector> ClientBuilder<C>[src]

pub fn set_unix_addr<A: Into<SocketAddrUnix>>(&mut self, addr: A) -> Result<()>[src]

Set the addr client connects to.

impl<C: TlsConnector> ClientBuilder<C>[src]

pub fn new() -> ClientBuilder<C>[src]

pub fn set_tls(&mut self, host: &str) -> Result<()>[src]

pub fn build(self) -> Result<Client>[src]

Auto Trait Implementations

impl<C = TlsConnector> !RefUnwindSafe for ClientBuilder<C>

impl<C> Send for ClientBuilder<C>

impl<C> Sync for ClientBuilder<C>

impl<C> Unpin for ClientBuilder<C>

impl<C = TlsConnector> !UnwindSafe for ClientBuilder<C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.