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]
const IKE: ProtocolID
IKE: ProtocolID = ProtocolID(1)
const AH: ProtocolID
AH: ProtocolID = ProtocolID(2)
const ESP: ProtocolID
ESP: ProtocolID = ProtocolID(3)
Trait Implementations
impl Clone for ProtocolID
[src]
fn clone(&self) -> ProtocolID
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ProtocolID
[src]
impl PartialEq for ProtocolID
[src]
fn eq(&self, __arg_0: &ProtocolID) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ProtocolID) -> bool
[src]
This method tests for !=
.