Trait poem::listener::AcceptorExt
source · [−]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
fn boxed(self) -> BoxAcceptor where
Self: Sized + 'static,
fn boxed(self) -> BoxAcceptor where
Self: Sized + 'static,
Wrap the acceptor in a Box.
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
rustls
only.Consume this acceptor and return a new TLS acceptor with rustls
.
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
native-tls
only.Consume this acceptor and return a new TLS acceptor with native-tls
.