Struct poem::listener::UnixListener
source · [−]pub struct UnixListener<T> { /* private fields */ }
This is supported on Unix only.
Expand description
A Unix domain socket listener.
Implementations
Binds to the provided address, and returns a UnixListener<T>
.
Trait Implementations
type Acceptor = UnixAcceptor
type Acceptor = UnixAcceptor
The acceptor type.
Create a acceptor instance.
Combine two listeners. Read more
fn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S> where
Self: Sized,
fn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S> where
Self: Sized,
This is supported on crate feature
rustls
only.Consume this listener and return a new TLS listener with rustls
.
fn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S> where
Self: Sized,
fn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S> where
Self: Sized,
This is supported on crate feature
native-tls
only.Consume this listener and return a new TLS listener with native-tls
.
Auto Trait Implementations
impl<T> RefUnwindSafe for UnixListener<T> where
T: RefUnwindSafe,
impl<T> Send for UnixListener<T> where
T: Send,
impl<T> Sync for UnixListener<T> where
T: Sync,
impl<T> Unpin for UnixListener<T> where
T: Unpin,
impl<T> UnwindSafe for UnixListener<T> where
T: UnwindSafe,
Blanket Implementations
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