Sha256: 5dfa2034bc4ca01718228b670a0ea977903bad4ff3ae4285ef4090469a6e78e4

Contents?: true

Size: 808 Bytes

Versions: 8

Compression:

Stored size: 808 Bytes

Contents

use std::io;
use std::net::{self, SocketAddr};

#[cfg(not(target_os = "wasi"))]
pub(crate) fn new_for_addr(_: SocketAddr) -> io::Result<i32> {
    os_required!();
}

#[cfg(not(target_os = "wasi"))]
pub(crate) fn bind(_: &net::TcpListener, _: SocketAddr) -> io::Result<()> {
    os_required!();
}

#[cfg(not(target_os = "wasi"))]
pub(crate) fn connect(_: &net::TcpStream, _: SocketAddr) -> io::Result<()> {
    os_required!();
}

#[cfg(not(target_os = "wasi"))]
pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> {
    os_required!();
}

#[cfg(any(unix, target_os = "hermit"))]
pub(crate) fn set_reuseaddr(_: &net::TcpListener, _: bool) -> io::Result<()> {
    os_required!();
}

pub(crate) fn accept(_: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> {
    os_required!();
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/mio-1.0.3/src/sys/shell/tcp.rs
wasmtime-28.0.0 ./ext/cargo-vendor/mio-1.0.3/src/sys/shell/tcp.rs
wasmtime-27.0.0 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs
wasmtime-26.0.0 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs
wasmtime-25.0.2 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs
wasmtime-25.0.1 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs
wasmtime-25.0.0 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs
wasmtime-24.0.0 ./ext/cargo-vendor/mio-1.0.2/src/sys/shell/tcp.rs