Struct tls_api_stub::TlsConnectorBuilder
source · [−]pub struct TlsConnectorBuilder(_);
Expand description
Non-instantiatable.
Trait Implementations
sourceimpl TlsConnectorBuilder for TlsConnectorBuilder
impl TlsConnectorBuilder for TlsConnectorBuilder
type Connector = TlsConnector
type Connector = TlsConnector
Result of connector to be build.
type Underlying = Void
type Underlying = Void
Type of the underlying builder. Read more
sourcefn underlying_mut(&mut self) -> &mut Void
fn underlying_mut(&mut self) -> &mut Void
Get the underlying builder. Read more
sourcefn set_alpn_protocols(&mut self, _protocols: &[&[u8]]) -> Result<()>
fn set_alpn_protocols(&mut self, _protocols: &[&[u8]]) -> Result<()>
Set ALPN-protocols to negotiate. Read more
sourcefn set_verify_hostname(&mut self, _verify: bool) -> Result<()>
fn set_verify_hostname(&mut self, _verify: bool) -> Result<()>
Should hostname verification be performed? Use carefully, it opens the door to MITM attacks. Read more
sourcefn add_root_certificate(&mut self, _cert: &[u8]) -> Result<()>
fn add_root_certificate(&mut self, _cert: &[u8]) -> Result<()>
Add trusted root certificate. By default connector supports only global trusted root. Read more
sourcefn build(self) -> Result<TlsConnector>
fn build(self) -> Result<TlsConnector>
Finish the acceptor construction.
Auto Trait Implementations
impl RefUnwindSafe for TlsConnectorBuilder
impl Send for TlsConnectorBuilder
impl Sync for TlsConnectorBuilder
impl Unpin for TlsConnectorBuilder
impl UnwindSafe for TlsConnectorBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more