Module net

Source
Expand description

Networking functionality.

Extends: std::{net}


Structs§

AddrParseError
🚩 core An error which can be returned when parsing an IP address or a socket address.
Ipv4Addr
core An IPv4 address.
Ipv6Addr
core An IPv6 address.
SocketAddrV4
core An IPv4 socket address.
SocketAddrV6
core An IPv6 socket address.
TcpIncomingstd
🔄 std An iterator that infinitely accepts connections on a TcpListener.
TcpListenerstd
std A TCP socket server, listening for connections.
TcpStreamstd
std A TCP stream between a local and a remote socket.
UdpSocketstd
std A UDP socket.

Enums§

IpAddr
core An IP address, either IPv4 or IPv6.
SocketAddr
core An internet socket address, either IPv4 or IPv6.
TcpShutdownstd
std Possible values which can be passed to the TcpStream::shutdown method.

Traits§

ToSocketAddrsstd
std Objects which can be converted or resolved to one or more SocketAddr values.