logo

Module cap_std::net

source · []
Expand description

A capability-based network API modeled after std::net.

This corresponds to std::net.

Instead of std::net’s constructor methods which take an address to connect to, this crates has methods on Pool which operate on addresses which must be present in the pool.

Structs

An error which can be returned when parsing an IP address or a socket address.

An iterator that infinitely accepts connections on a TcpListener.

An IPv4 address.

An IPv6 address.

A pool of network addresses.

An IPv4 socket address.

An IPv6 socket address.

A TCP socket server, listening for connections.

A TCP stream between a local and a remote socket.

A UDP socket.

Enums

An IP address, either IPv4 or IPv6.

Possible values which can be passed to the TcpStream::shutdown method.

An internet socket address, either IPv4 or IPv6.

Traits

A trait for objects which can be converted or resolved to one or more SocketAddr values.