[][src]Struct native_tls::TlsAcceptorBuilder

pub struct TlsAcceptorBuilder { /* fields omitted */ }
[]

A builder for TlsAcceptors.

Methods

impl TlsAcceptorBuilder[src][]

pub fn min_protocol_version(
    &mut self,
    protocol: Option<Protocol>
) -> &mut TlsAcceptorBuilder
[src][]

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][]

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][]

Creates a new TlsAcceptor.

Auto Trait Implementations

impl Send for TlsAcceptorBuilder

impl Sync for TlsAcceptorBuilder

Blanket Implementations

impl<T> From for T[src][]

impl<T, U> Into for T where
    U: From<T>, 
[src][]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src][]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src][]

impl<T> BorrowMut for T where
    T: ?Sized
[src][]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src][]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src][]