[−][src]Struct httpbis::ClientBuilder
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]
pub fn new_plain() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,