Expand description
Common types for dealing with sockets.
Structs§
- Addr
IsMapped Error - The addr could not be converted to a
NonMappedAddr. - Conn
Info - Information associated with a datagram connection.
- Expected
Conn Error - A connected socket was expected.
- Expected
Unbound Error - An unbound socket was expected.
- Listener
Info - Information associated with a datagram listener.
- NotDual
Stack Capable Error - An error encountered when attempting to perform dual stack operations on socket with a non dual stack capable protocol.
- Sharing
Domain - An identifier of a sharing domain used for SO_REUSEPORT.
- Socket
Cookie - Socket cookie is a unique 64-bit value assigned to a socket.
- Socket
Cookie Matcher - A matcher for a socket’s cookie.
- Strictly
Zoned Addr - A
ZonedAddrwhose address isZonediff a zone is required. - TcpState
Matcher - A matcher for TCP state machine state.
- UdpState
Matcher - A matcher for UDP states.
Enums§
- Connect
Error - An error when attempting to create a datagram socket.
- IpSocket
Matcher - The top-level matcher for IP sockets.
- Multicast
Interface Selector - Selector for the device to affect when changing multicast settings.
- Multicast
Membership Interface Selector - Selector for the device to use when changing multicast membership settings.
- 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.
- Send
Error - Error encountered when sending a datagram on a socket.
- Send
ToError - An error encountered while sending a datagram packet to an alternate address.
- SetDual
Stack Enabled Error - An error encountered while enabling or disabling dual-stack operation.
- SetMulticast
Membership Error - Error resulting from attempting to change multicast membership settings for a socket.
- Shutdown
Type - Which direction(s) to shut down for a socket.
- Socket
Info - Information about the addresses for a socket.
- Socket
Transport Protocol Matcher - A matcher for the transport protocol of a socket.
- TcpSocket
Matcher - The top-level matcher for TCP sockets.
- UdpSocket
Matcher - The top-level matcher for UDP sockets.
Traits§
- Socket
Writable Listener - A type capable of handling socket writable changes.