[][src]Struct actix_tls::openssl::Acceptor

pub struct Acceptor<T: AsyncRead + AsyncWrite> { /* fields omitted */ }

Accept TLS connections via openssl package.

openssl feature enables this Acceptor type.

Implementations

impl<T: AsyncRead + AsyncWrite> Acceptor<T>[src]

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

Create OpenSSL based Acceptor service factory.

Trait Implementations

impl<T: AsyncRead + AsyncWrite> Clone for Acceptor<T>[src]

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

type Request = T

Requests handled by the created services.

type Response = SslStream<T>

Responses given by the created services.

type Error = HandshakeError<T>

Errors produced by the created services.

type Config = ()

Service factory configuration.

type Service = AcceptorService<T>

The kind of Service created by this factory.

type InitError = ()

Errors potentially raised 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 Acceptor<T> where
    T: RefUnwindSafe

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

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

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

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