Struct ipsec_parser::ProtocolID [] [src]

pub struct ProtocolID(pub u8);

Protocol type: IKE, AH or ESP

Defined in RFC7296 section 3.3.1

Methods

impl ProtocolID
[src]

IKE: ProtocolID = ProtocolID(1)

AH: ProtocolID = ProtocolID(2)

ESP: ProtocolID = ProtocolID(3)

Trait Implementations

impl Clone for ProtocolID
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ProtocolID
[src]

impl PartialEq for ProtocolID
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ProtocolID
[src]

impl Debug for ProtocolID
[src]

[src]

Formats the value using the given formatter.