Struct native_tls::TlsAcceptorBuilder [−][src]
pub struct TlsAcceptorBuilder { /* fields omitted */ }
A builder for TlsAcceptor
s.
Methods
impl TlsAcceptorBuilder
[src]
impl TlsAcceptorBuilder
pub fn min_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
[src]
pub fn min_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
Sets the minimum supported protocol version.
A value of None
enables support for the oldest protocols supported by the implementation.
Defaults to Some(Protocol::Tlsv10)
.
pub fn max_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
[src]
pub fn max_protocol_version(
&mut self,
protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
Sets the maximum supported protocol version.
A value of None
enables support for the newest protocols supported by the implementation.
Defaults to None
.
pub fn build(&self) -> Result<TlsAcceptor>
[src]
pub fn build(&self) -> Result<TlsAcceptor>
Creates a new TlsAcceptor
.
Auto Trait Implementations
impl Send for TlsAcceptorBuilder
impl Send for TlsAcceptorBuilder
impl Sync for TlsAcceptorBuilder
impl Sync for TlsAcceptorBuilder