Trait std::os::wasi::net::TcpListenerExt

source ·
pub trait TcpListenerExt {
    fn sock_accept(&self, flags: u16) -> Result<u32>;
}
🔬This is a nightly-only experimental API. (wasi_ext #71213)
Available 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§