pub struct TlsConnectorBuilder(pub Void);
Tuple Fields§
§0: Void
Trait Implementations§
Source§impl TlsConnectorBuilder for TlsConnectorBuilder
impl TlsConnectorBuilder for TlsConnectorBuilder
Source§type Connector = TlsConnector
type Connector = TlsConnector
Result of connector to be build.
Source§type Underlying = Void
type Underlying = Void
Type of the underlying builder. Read more
Source§fn underlying_mut(&mut self) -> &mut Self::Underlying
fn underlying_mut(&mut self) -> &mut Self::Underlying
Get the underlying builder. Read more
Source§fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
fn set_alpn_protocols(&mut self, protocols: &[&[u8]]) -> Result<()>
Set ALPN-protocols to negotiate. Read more
Source§fn 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.
Source§fn 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
Source§fn build(self) -> Result<TlsConnector>
fn build(self) -> Result<TlsConnector>
Finish the acceptor construction.
Auto Trait Implementations§
impl Freeze for TlsConnectorBuilder
impl RefUnwindSafe for TlsConnectorBuilder
impl Send for TlsConnectorBuilder
impl Sync for TlsConnectorBuilder
impl Unpin for TlsConnectorBuilder
impl UnwindSafe for TlsConnectorBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more