pub trait TcpListenerExt {
    fn sock_accept(&self, flags: u16) -> Result<u32>;
}
🔬 This is a nightly-only experimental API. (wasi_ext #71213)
This is supported on WASI only.
Expand description

WASI-specific extensions to std::net::TcpListener.

Required methods

🔬 This is a nightly-only experimental API. (wasi_ext #71213)

Accept a socket.

This corresponds to the sock_accept syscall.

Implementors