Expand description
Support for generalized addresses.
We use the SocketAddr
type in this module,
when we want write code
that can treat AF_UNIX addresses and internet addresses as a single type.
As an alternative, you could also write your code to be generic over address, listener, provider, and stream types. That would give you the performance benefits of monomorphization over some corresponding costs in complexity and code size. Generally, it’s better to use these types unless you know that the minor performance overhead here will matter in practice.
Structs§
- Display
Lossy - Lossy display for a
SocketAddr
.
Enums§
- Addr
Parse Error - An error encountered while attempting to parse a
SocketAddr
- Socket
Addr - Any address that Arti can listen on or connect to.