Struct salvo::prelude::UnixListener [−][src]
pub struct UnixListener { /* fields omitted */ }
Expand description
UnixListener
Implementations
Creates a new UnixListener
bind to the specified path.
Creates a new UnixListener
bind to the specified path.
Panics
This function panics if thread-local runtime is not set.
The runtime is usually set implicitly when this function is called from a future driven by a tokio runtime.
Trait Implementations
type Conn = UnixStream
type Conn = UnixStream
The connection type that can be accepted.
pub fn poll_accept(
self: Pin<&mut UnixListener>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<UnixListener as Accept>::Conn, <UnixListener as Accept>::Error>>>
pub fn poll_accept(
self: Pin<&mut UnixListener>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<UnixListener as Accept>::Conn, <UnixListener as Accept>::Error>>>
Poll to accept the next connection.
Join current Listener with the other.
Auto Trait Implementations
impl !RefUnwindSafe for UnixListener
impl Send for UnixListener
impl Sync for UnixListener
impl Unpin for UnixListener
impl !UnwindSafe for UnixListener
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