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.
StrictlyZonedAddr
A ZonedAddr whose address is Zoned iff a zone is required.

Enums§

ConnectError
An error when attempting to create a datagram socket.
MulticastInterfaceSelector
Selector for the device to affect when changing multicast settings.
MulticastMembershipInterfaceSelector
Selector for the device to use when changing multicast membership settings.
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.

Traits§

SocketWritableListener
A type capable of handling socket writable changes.