std::os::wasi::net

Trait TcpListenerExt

source
pub trait TcpListenerExt {
    // Required method
    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§

source

fn sock_accept(&self, flags: u16) -> Result<u32>

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

Accept a socket.

This corresponds to the sock_accept syscall.

Implementors§