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,
{ ... }
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
sourcefn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
fn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
Wrap the acceptor in a Box
.
sourcefn 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,
Available on crate feature
rustls
only.Consume this acceptor and return a new TLS acceptor with rustls
.
sourcefn 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,
Available on crate feature
native-tls
only.Consume this acceptor and return a new TLS acceptor with native-tls
.
sourcefn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>where
Self: Sized,
S: Stream<Item = OpensslTlsConfig> + 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
openssl-tls
only.Consume this acceptor and return a new TLS acceptor with openssl-tls
.