Struct lrs::socket::ip::Proto

An IPv4/IPv6 protocol.

Syntax

struct Proto(u8)

Fields

PositionDescription
1

The integer constant associated with the protocol.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.

Remarks

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.

See also