Skip to main content

Module socket

Module socket 

Source
Expand description

Common types for dealing with sockets.

Structs§

AddrIsMappedError
The addr could not be converted to a NonMappedAddr.
ConnInfo
Information associated with a datagram connection.
ExpectedConnError
A connected socket was expected.
ExpectedUnboundError
An unbound socket was expected.
ListenerInfo
Information associated with a datagram listener.
NotDualStackCapableError
An error encountered when attempting to perform dual stack operations on socket with a non dual stack capable protocol.
SharingDomain
An identifier of a sharing domain used for SO_REUSEPORT.
SocketCookie
Socket cookie is a unique 64-bit value assigned to a socket.
SocketCookieMatcher
A matcher for a socket’s cookie.
StrictlyZonedAddr
A ZonedAddr whose address is Zoned iff a zone is required.
TcpStateMatcher
A matcher for TCP state machine state.
UdpStateMatcher
A matcher for UDP states.

Enums§

ConnectError
An error when attempting to create a datagram socket.
IpSocketMatcher
The top-level matcher for IP sockets.
MulticastInterfaceSelector
Selector for the device to affect when changing multicast settings.
MulticastMembershipInterfaceSelector
Selector for the device to use when changing multicast membership settings.
PendingDatagramSocketError
Errors surfaced on sockets via GetError.
ReusePortOption
A value of the SO_REUSEPORT option. Also encodes the sharing domain, which allows to ensure that only sockets in the same domain can share ports.
SendError
Error encountered when sending a datagram on a socket.
SendToError
An error encountered while sending a datagram packet to an alternate address.
SetDualStackEnabledError
An error encountered while enabling or disabling dual-stack operation.
SetMulticastMembershipError
Error resulting from attempting to change multicast membership settings for a socket.
ShutdownType
Which direction(s) to shut down for a socket.
SocketInfo
Information about the addresses for a socket.
SocketTransportProtocolMatcher
A matcher for the transport protocol of a socket.
TcpSocketMatcher
The top-level matcher for TCP sockets.
UdpSocketMatcher
The top-level matcher for UDP sockets.

Traits§

SocketWritableListener
A type capable of handling socket writable changes.