Struct native_tls::TlsAcceptorBuilder
[−]
[src]
pub struct TlsAcceptorBuilder(_);
A builder for TlsAcceptor
s.
Methods
impl TlsAcceptorBuilder
[src]
pub fn supported_protocols(
&mut self,
protocols: &[Protocol]
) -> Result<&mut TlsAcceptorBuilder>
[src]
&mut self,
protocols: &[Protocol]
) -> Result<&mut TlsAcceptorBuilder>
Sets the protocols which the acceptor 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.
pub fn build(self) -> Result<TlsAcceptor>
[src]
Consumes the builder, returning a TlsAcceptor
.
Trait Implementations
impl TlsAcceptorBuilderExt for TlsAcceptorBuilder
[src]
fn builder(&self) -> &SslAcceptorBuilder
[src]
Returns a shared reference to the inner SslAcceptorBuilder
.
fn builder_mut(&mut self) -> &mut SslAcceptorBuilder
[src]
Returns a mutable reference to the inner SslAcceptorBuilder
.