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
Tfor bothIandI::OtherVersion. - Incompatible
Error - Error returned by implementations of
SocketMapAddrStateSpecto 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
SendBufferTrackinginstance. - Send
Buffer Tracking - Tracks the available send buffer space for a socket.
- Sharing
Domain - An identifier of a sharing domain used for SO_REUSEPORT.
- Shutdown
- Describes which direction(s) of the data path should be shut down.
- Socket
Cookie - Socket cookie is a unique 64-bit value assigned to a socket.
- 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
ZonedAddrwhose address isZonediff a zone is required. - Update
Sharing Error - The error returned when updating the sharing state for a
SocketMapentry 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.
- Reuse
Port Option - 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.
- 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
OtherVersionassociated 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
Ipproviding socket-specific functionality. - Socket
MapAddr Spec - Specification for the identifiers in an
AddrVec. - Socket
MapAddr State Spec - Describes an entry in a
SocketMapfor a listener or connection address. - Socket
MapAddr State Update Sharing Spec - Provides behavior on updating the sharing state of a
SocketMapentry. - Socket
MapConflict Policy - Provides conflict detection for a
SocketMapStateSpec. - Socket
MapState Spec - Specifies the types parameters for
BoundSocketMapstate 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.