[][src]Struct requiem_tls::nativetls::NativeTlsAcceptor

pub struct NativeTlsAcceptor<T> { /* fields omitted */ }

Support SSL connections via native-tls package

tls feature enables NativeTlsAcceptor type

Methods

impl<T> NativeTlsAcceptor<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

pub fn new(acceptor: TlsAcceptor) -> Self[src]

Create NativeTlsAcceptor instance

Trait Implementations

impl<T> Clone for NativeTlsAcceptor<T>[src]

impl<T> ServiceFactory for NativeTlsAcceptor<T> where
    T: AsyncRead + AsyncWrite + Unpin + 'static, 
[src]

type Request = T

Requests handled by the service.

type Response = TlsStream<T>

Responses given by the service

type Error = Error

Errors produced by the service

type Service = NativeTlsAcceptorService<T>

The Service value created by this factory

type Config = ()

Service factory configuration

type InitError = ()

Errors produced while building a service.

type Future = Ready<Result<Self::Service, Self::InitError>>

The future of the Service instance.

Auto Trait Implementations

impl<T> RefUnwindSafe for NativeTlsAcceptor<T> where
    T: RefUnwindSafe

impl<T> Send for NativeTlsAcceptor<T> where
    T: Send

impl<T> Sync for NativeTlsAcceptor<T> where
    T: Sync

impl<T> Unpin for NativeTlsAcceptor<T> where
    T: Unpin

impl<T> UnwindSafe for NativeTlsAcceptor<T> where
    T: UnwindSafe

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> IntoServiceFactory<T> for T where
    T: ServiceFactory
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.