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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

The type returned in the event of a conversion error.