logo
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
, { ... } }
Expand description

Extension trait for Acceptor.

Provided methods

Combine two acceptors.

Wrap the acceptor in a Box.

This is supported on crate feature rustls only.

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

This is supported on crate feature native-tls only.

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

Implementors