Expand description
Common types and utilities for sockets.
Structs§
- Addr
IsMapped Error - The addr could not be converted to a
NonMappedAddr
. - Addr
VecIter - An iterator over socket addresses.
- Bound
Socket Map - A map from socket addresses to sockets.
- Conn
Addr - The address of a connected socket.
- Dual
Stack Tuple - A tuple of values for
T
for bothI
andI::OtherVersion
. - Incompatible
Error - Error returned by implementations of
SocketMapAddrStateSpec
to indicate incompatible changes to a socket map. - Listener
Addr - The address of a listening socket.
- Listener
Addr Info - Information about the address in a
ListenerAddr
. - Listener
IpAddr - The IP address and identifier (port) of a listening socket.
- NotDual
Stack Capable Error - An error encountered when attempting to perform dual stack operations on socket with a non dual stack capable protocol.
- Send
Buffer Full Error - An error indicating that the send buffer is full.
- Send
Buffer Space - A type stating that some amount of space was reserved within a
SendBufferTracking
instance. - Send
Buffer Tracking - Tracks the available send buffer space for a socket.
- Shutdown
- Describes which direction(s) of the data path should be shut down.
- Socket
Device Update - A helper type to verify if applying socket updates is allowed for a given current state.
- Socket
Device Update NotAllowed Error - The device can’t be updated on a socket.
- Socket
IpAddr - An IP address that witnesses all required properties of a socket address.
- Socket
State Entry - A borrowed state entry in a
SocketMap
. - Strictly
Zoned Addr - A
ZonedAddr
whose address isZoned
iff a zone is required. - Update
Sharing Error - The error returned when updating the sharing state for a
SocketMap
entry fails.
Enums§
- Addr
Entry - A borrowed entry in a
BoundSocketMap
. - AddrVec
- An “address vector” type that can hold any address in a
SocketMap
. - Bound
- A bound socket state that is either a listener or a connection.
- Dual
Stack Conn IpAddr - The IP address and identifiers (ports) of a dual-stack connected socket.
- Dual
Stack Listener IpAddr - The IP address and identifier (port) of a dual-stack listening socket.
- Dual
Stack Local Ip - A local IP address that’s either in the current stack or the other stack.
- Dual
Stack Remote Ip - A remote IP address that’s either in the current stack or the other stack.
- Either
Stack - State belonging to either IP stack.
- Found
Sockets - The type returned by
BoundSocketMap::iter_receivers
. - Insert
Error - Errors observed by
SocketMapConflictPolicy
. - Listener
- Uninstantiable tag type for denoting listening sockets.
- Maybe
Dual Stack - Control flow type containing either a dual-stack or non-dual-stack context.
- Remove
Result - The result of attempting to remove a socket from a collection of sockets.
- SetDual
Stack Enabled Error - An error encountered while enabling or disabling dual-stack operation.
- Shutdown
Type - Which direction(s) to shut down for a socket.
- Socket
Addr Type - How a socket is bound on the system.
Traits§
- Dual
Stack IpExt - A dual stack IP extention trait that provides the
OtherVersion
associated type. - Inserter
- An inserter into a
SocketMap
. - Socket
IpAddr Ext - Extensions to IP Address witnesses useful in the context of sockets.
- Socket
IpExt - Extension trait for
Ip
providing socket-specific functionality. - Socket
MapAddr Spec - Specification for the identifiers in an
AddrVec
. - Socket
MapAddr State Spec - Describes an entry in a
SocketMap
for a listener or connection address. - Socket
MapAddr State Update Sharing Spec - Provides behavior on updating the sharing state of a
SocketMap
entry. - Socket
MapConflict Policy - Provides conflict detection for a
SocketMapStateSpec
. - Socket
MapState Spec - Specifies the types parameters for
BoundSocketMap
state as a single bundle. - Socket
MapUpdate Sharing Policy - Defines the policy for updating the sharing state of entries in the
SocketMap
. - Socket
Writable Listener - A type capable of handling socket writable changes.
- Socket
Zoned Addr Ext - An extention trait for
ZonedAddr
.
Type Aliases§
- Conn
Info Addr - The IP addresses (mapped if dual-stack) and identifiers (ports) of a connected socket.
- Conn
IpAddr - The IP addresses and identifiers (ports) of a connected socket.