Struct poem::listener::UnixAcceptor
source[−]pub struct UnixAcceptor { /* private fields */ }
This is supported on Unix only.
Expand description
A acceptor that accepts connections.
Implementations
Creates new UnixAcceptor
from a std::os::unix::net::UnixListener
.
Trait Implementations
type Io = UnixStream
type Io = UnixStream
IO stream type.
Returns the local address that this listener is bound to.
Auto Trait Implementations
impl !RefUnwindSafe for UnixAcceptor
impl Send for UnixAcceptor
impl Sync for UnixAcceptor
impl Unpin for UnixAcceptor
impl !UnwindSafe for UnixAcceptor
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