Sha256: 81a5219507eea81895f4f984ceb157a9c0d3c046d50190b1c562f52d77f2b607

Contents?: true

Size: 781 Bytes

Versions: 30

Compression:

Stored size: 781 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(unix)]
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

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-22.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-21.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-20.0.2 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-20.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-18.0.3 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-17.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-17.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-16.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-15.0.1 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-15.0.0 ./ext/cargo-vendor/mio-0.8.10/src/sys/shell/tcp.rs
wasmtime-14.0.4 ./ext/cargo-vendor/mio-0.8.9/src/sys/shell/tcp.rs
wasmtime-14.0.3 ./ext/cargo-vendor/mio-0.8.9/src/sys/shell/tcp.rs
wasmtime-14.0.1 ./ext/cargo-vendor/mio-0.8.9/src/sys/shell/tcp.rs
wasmtime-14.0.0 ./ext/cargo-vendor/mio-0.8.9/src/sys/shell/tcp.rs
wasmtime-13.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/shell/tcp.rs
wasmtime-12.0.1 ./ext/cargo-vendor/mio-0.8.8/src/sys/shell/tcp.rs
wasmtime-12.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/shell/tcp.rs
wasmtime-11.0.0 ./ext/cargo-vendor/mio-0.8.8/src/sys/shell/tcp.rs
wasmtime-10.0.1 ./ext/cargo-vendor/mio-0.8.8/src/sys/shell/tcp.rs