pub trait AcceptorExt: Acceptor {
    fn combine<T>(self, other: T) -> Combined<Self, T>
    where
        Self: Sized
, { ... } fn boxed(self) -> BoxAcceptor
    where
        Self: Sized + 'static
, { ... } fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S>
    where
        Self: Sized,
        S: Stream<Item = RustlsConfig> + Send + Unpin + 'static
, { ... } fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S>
    where
        Self: Sized,
        S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static
, { ... } fn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>
    where
        Self: Sized,
        S: Stream<Item = OpensslTlsConfig> + Send + Unpin + 'static
, { ... } }
Available on crate feature server only.
Expand description

Extension trait for Acceptor.

Provided Methods

Combine two acceptors.

Wrap the acceptor in a Box.

Available on crate feature rustls only.

Consume this acceptor and return a new TLS acceptor with rustls.

Available on crate feature native-tls only.

Consume this acceptor and return a new TLS acceptor with native-tls.

Available on crate feature openssl-tls only.

Consume this acceptor and return a new TLS acceptor with openssl-tls.

Implementors