[][src]Struct actix_server::ssl::NativeTlsAcceptor

pub struct NativeTlsAcceptor<T, P = ()> { /* fields omitted */ }

Support SSL connections via native-tls package

tls feature enables NativeTlsAcceptor type

Methods

impl<T: AsyncRead + AsyncWrite, P> NativeTlsAcceptor<T, P>[src]

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

Create NativeTlsAcceptor instance

Trait Implementations

impl<T: AsyncRead + AsyncWrite, P> Clone for NativeTlsAcceptor<T, P>[src]

impl<T: AsyncRead + AsyncWrite, P> NewService for NativeTlsAcceptor<T, P>[src]

type Request = Io<T, P>

Requests handled by the service.

type Response = Io<TlsStream<T>, P>

Responses given by the service

type Error = Error

Errors produced by the service

type Config = ServerConfig

Service factory configuration

type Service = NativeTlsAcceptorService<T, P>

The Service value created by this factory

type InitError = ()

Errors produced while building a service.

type Future = FutureResult<Self::Service, Self::InitError>

The future of the Service instance.

Auto Trait Implementations

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

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

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

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

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

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]

impl<T> Erased for T

impl<T> IntoNewService<T> for T where
    T: NewService
[src]