An IPv4/IPv6 protocol.
struct Proto(u8)
| Position | Description |
|---|---|
| 1 | The integer constant associated with the protocol. |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| Debug | Objects that can be formatted in a "debug" form. |
| Eq | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |
| Pod | Objects that are safe to use if they contain a random bit pattern. |
This value corresponds to the protocol/next header field in an IPv4/IPv6 packet. For example, TCP/IP uses the protocol ip::proto::Tcp.
See lrs::socket::ip::proto for pre-defined constants.