Struct poem::listener::TcpAcceptor
source[−]pub struct TcpAcceptor { /* private fields */ }
Expand description
A acceptor that accepts TCP connections.
Implementations
Creates new TcpAcceptor
from a std::net::TcpListener
.
Trait Implementations
Returns the local address that this listener is bound to.
Auto Trait Implementations
impl !RefUnwindSafe for TcpAcceptor
impl Send for TcpAcceptor
impl Sync for TcpAcceptor
impl Unpin for TcpAcceptor
impl !UnwindSafe for TcpAcceptor
Blanket Implementations
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
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more