Expand description
Common types and utilities for sockets.
Structs§
- The addr could not be converted to a
NonMappedAddr
. - An iterator over socket addresses.
- A map from socket addresses to sockets.
- The address of a connected socket.
- A tuple of values for
T
for bothI
andI::OtherVersion
. - Error returned by implementations of
SocketMapAddrStateSpec
to indicate incompatible changes to a socket map. - The address of a listening socket.
- Information about the address in a
ListenerAddr
. - The IP address and identifier (port) of a listening socket.
- An error encountered when attempting to perform dual stack operations on socket with a non dual stack capable protocol.
- Describes which direction(s) of the data path should be shut down.
- A helper type to verify if applying socket updates is allowed for a given current state.
- The device can’t be updated on a socket.
- An IP address that witnesses all required properties of a socket address.
- A borrowed state entry in a
SocketMap
. - A
ZonedAddr
whose address isZoned
iff a zone is required. - The error returned when updating the sharing state for a
SocketMap
entry fails.
Enums§
- A borrowed entry in a
BoundSocketMap
. - An “address vector” type that can hold any address in a
SocketMap
. - A bound socket state that is either a listener or a connection.
- The IP address and identifiers (ports) of a dual-stack connected socket.
- The IP address and identifier (port) of a dual-stack listening socket.
- A local IP address that’s either in the current stack or the other stack.
- A remote IP address that’s either in the current stack or the other stack.
- State belonging to either IP stack.
- The type returned by
BoundSocketMap::iter_receivers
. - Errors observed by
SocketMapConflictPolicy
. - Uninstantiable tag type for denoting listening sockets.
- Control flow type containing either a dual-stack or non-dual-stack context.
- The result of attempting to remove a socket from a collection of sockets.
- An error encountered while enabling or disabling dual-stack operation.
- Which direction(s) to shut down for a socket.
- How a socket is bound on the system.
Traits§
- A dual stack IP extention trait that provides the
OtherVersion
associated type. - An inserter into a
SocketMap
. - Extensions to IP Address witnesses useful in the context of sockets.
- Extension trait for
Ip
providing socket-specific functionality. - Specification for the identifiers in an
AddrVec
. - Describes an entry in a
SocketMap
for a listener or connection address. - Provides behavior on updating the sharing state of a
SocketMap
entry. - Provides conflict detection for a
SocketMapStateSpec
. - Specifies the types parameters for
BoundSocketMap
state as a single bundle. - Defines the policy for updating the sharing state of entries in the
SocketMap
. - An extention trait for
ZonedAddr
.
Type Aliases§
- The IP addresses (mapped if dual-stack) and identifiers (ports) of a connected socket.
- The IP addresses and identifiers (ports) of a connected socket.