Struct native_tls::TlsAcceptorBuilder[][src]

pub struct TlsAcceptorBuilder { /* fields omitted */ }

A builder for TlsAcceptors.

Implementations

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 RefUnwindSafe for TlsAcceptorBuilder

impl Send for TlsAcceptorBuilder

impl Sync for TlsAcceptorBuilder

impl Unpin for TlsAcceptorBuilder

impl UnwindSafe for TlsAcceptorBuilder

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.