Struct tls_api::TlsConnectorBuilderBox [−][src]
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
impl !RefUnwindSafe for TlsConnectorBuilderBox[src]
impl Send for TlsConnectorBuilderBox[src]
impl !Sync for TlsConnectorBuilderBox[src]
impl Unpin for TlsConnectorBuilderBox[src]
impl !UnwindSafe for TlsConnectorBuilderBox[src]
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,
pub 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.
pub 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>,