Struct native_tls::TlsConnectorBuilder
[−]
[src]
pub struct TlsConnectorBuilder(_);
A builder for TlsConnector
s.
Methods
impl TlsConnectorBuilder
[src]
fn identity(&mut self, pkcs12: Pkcs12) -> Result<&mut TlsConnectorBuilder>
Sets the identity to be used for client certificate authentication.
fn supported_protocols(&mut self,
protocols: &[Protocol])
-> Result<&mut TlsConnectorBuilder>
protocols: &[Protocol])
-> Result<&mut TlsConnectorBuilder>
Sets the protocols which the connector will support.
The protocols supported by default are currently TLS 1.0, TLS 1.1, and TLS 1.2, though this is subject to change.
fn build(self) -> Result<TlsConnector>
Consumes the builder, returning a TlsConnector
.
Trait Implementations
impl TlsConnectorBuilderExt for TlsConnectorBuilder
[src]
fn builder(&self) -> &SslConnectorBuilder
Returns a shared reference to the inner SslConnectorBuilder
.
fn builder_mut(&mut self) -> &mut SslConnectorBuilder
Returns a mutable reference to the inner SslConnectorBuilder
.