[][src]Struct tokio_libtls::AsyncTlsOptions

pub struct AsyncTlsOptions { /* fields omitted */ }

Configuration options for AsyncTls.

See also

AsyncTls

Methods

impl AsyncTlsOptions[src]

pub fn new() -> Self[src]

Return new empty AsyncTlsOptions struct.

Important traits for &'_ mut F
pub fn timeout(&mut self, timeout: Duration) -> &mut Self[src]

Set the optional TCP connection and TLS handshake timeout.

Important traits for &'_ mut F
pub fn servername(&mut self, servername: &str) -> &mut Self[src]

Set the optional TLS servername.

If not specified, the address is derived from the host or address.

pub fn build(&mut self) -> Option<Self>[src]

Return as Some(AsyncTlsOptions) or None if the options are empty.

Trait Implementations

impl Default for AsyncTlsOptions[src]

impl Clone for AsyncTlsOptions[src]

impl PartialEq<AsyncTlsOptions> for AsyncTlsOptions[src]

impl Debug for AsyncTlsOptions[src]

Auto Trait Implementations

impl Send for AsyncTlsOptions

impl Unpin for AsyncTlsOptions

impl Sync for AsyncTlsOptions

impl UnwindSafe for AsyncTlsOptions

impl RefUnwindSafe for AsyncTlsOptions

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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