Struct tls_api::TlsConnectorBuilderBox[][src]

pub struct TlsConnectorBuilderBox(_);

TlsConnector without type parameter.

Implementation can be switched without parameterizing every function.

Implementations

impl TlsConnectorBuilderBox[src]

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

Build a connector.

pub fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>[src]

Set ALPN-protocols to negotiate.

This operations fails is not TlsConnector::SUPPORTS_ALPN.

pub fn set_verify_hostname(&mut self, verify: bool) -> Result<()>[src]

Should hostname verification be performed? Use carefully, it opens the door to MITM attacks.

pub fn add_root_certificate(&mut self, cert: &[u8]) -> Result<()>[src]

Add trusted certificate (e. g. CA).

Auto Trait Implementations

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.