Skip to main content

Module addr

Module addr 

Source
Expand description

Native socket addresses.

Structs§

Addr
Exact native address extent borrowed from its immutable owner.
Internet
Compact IPv4 or IPv6 storage retaining its selected native length.
Length
An address length the kernel may overwrite in place.
Socklen
A validated nonzero native socket-address length.
Storage
One native address buffer with its exact length.
Unix
One native Unix-domain socket address with its exact path length.

Enums§

Error
Exact native address decoding failure.
Local
Exact failure while observing one descriptor’s local address.
PathError
Exact Unix-domain name validation failure.

Constants§

CAPACITY
Exact byte capacity of one native socket-address buffer.
FAMILY_BYTES
Exact byte length of the namespace prefix every address carries.

Traits§

Source
Native encoding of the two-byte address header selected by its backend.