Skip to main content

Crate net

Crate net 

Source
Available on crate feature net only.
Expand description

Network utilities.

Currently, TCP/UDP/Unix socket are implemented.

Structs§

OwnedReadHalf
Owned read half.
OwnedWriteHalf
Owned write half.
ReadHalf
Borrowed read half.
ReuniteError
Error indicating that two halves were not from the same socket, and thus could not be reunited.
SocketOpts
Options for configuring sockets.
TcpIncoming
A stream of incoming TCP connections.
TcpListener
A TCP socket server, listening for connections.
TcpStream
A TCP stream between a local and a remote socket.
UdpSocket
A UDP socket.
UnixIncoming
A stream of incoming Unix connections.
UnixListener
A Unix socket server, listening for connections.
UnixStream
A Unix stream between two local sockets on Windows & WSL.
WriteHalf
Borrowed write half.

Traits§

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

Type Aliases§

CMsgBuilderDeprecated
Helper to construct control message.
CMsgIterDeprecated
An iterator for control messages.
CMsgRefDeprecated
Reference to a control message.
PollFdDeprecated
Providing functionalities to wait for readiness.