Struct ipsec_parser::IdentificationType
[−]
[src]
pub struct IdentificationType(pub u8);
Type of Identification
Methods
impl IdentificationType
[src]
const ID_IPV4_ADDR: IdentificationType
ID_IPV4_ADDR: IdentificationType = IdentificationType(1)
A single four (4) octet IPv4 address.
const ID_FQDN: IdentificationType
ID_FQDN: IdentificationType = IdentificationType(2)
A fully-qualified domain name string. An example of an ID_FQDN is "example.com". The string MUST NOT contain any terminators (e.g., NULL, CR, etc.). All characters in the ID_FQDN are ASCII; for an "internationalized domain name", the syntax is as defined in [IDNA], for example "xn--tmonesimerkki-bfbb.example.net".
const ID_RFC822_ADDR: IdentificationType
ID_RFC822_ADDR: IdentificationType = IdentificationType(3)
A fully-qualified RFC 822 email address string. An example of a ID_RFC822_ADDR is "jsmith@example.com". The string MUST NOT contain any terminators. Because of [EAI], implementations would be wise to treat this field as UTF-8 encoded text, not as pure ASCII.
const ID_IPV6_ADDR: IdentificationType
ID_IPV6_ADDR: IdentificationType = IdentificationType(5)
A single sixteen (16) octet IPv6 address.
const ID_DER_ASN1_DN: IdentificationType
ID_DER_ASN1_DN: IdentificationType = IdentificationType(9)
The binary Distinguished Encoding Rules (DER) encoding of an ASN.1 X.500 Distinguished Name.
const ID_DER_ASN1_GN: IdentificationType
ID_DER_ASN1_GN: IdentificationType = IdentificationType(10)
The binary DER encoding of an ASN.1 X.509 GeneralName.
const ID_KEY_ID: IdentificationType
ID_KEY_ID: IdentificationType = IdentificationType(11)
An opaque octet stream that may be used to pass vendor-specific information necessary to do certain proprietary types of identification.
Trait Implementations
impl Clone for IdentificationType
[src]
fn clone(&self) -> IdentificationType
[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 IdentificationType
[src]
impl Debug for IdentificationType
[src]
impl PartialEq for IdentificationType
[src]
fn eq(&self, __arg_0: &IdentificationType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IdentificationType) -> bool
[src]
This method tests for !=
.