[][src]Struct ipsec_parser::IdentificationType

pub struct IdentificationType(pub u8);

Type of Identification

Methods

impl IdentificationType[src]

pub const ID_IPV4_ADDR: IdentificationType[src]

A single four (4) octet IPv4 address.

pub const ID_FQDN: IdentificationType[src]

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".

pub const ID_RFC822_ADDR: IdentificationType[src]

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.

pub const ID_IPV6_ADDR: IdentificationType[src]

A single sixteen (16) octet IPv6 address.

pub const ID_DER_ASN1_DN: IdentificationType[src]

The binary Distinguished Encoding Rules (DER) encoding of an ASN.1 X.500 Distinguished Name.

pub const ID_DER_ASN1_GN: IdentificationType[src]

The binary DER encoding of an ASN.1 X.509 GeneralName.

pub const ID_KEY_ID: IdentificationType[src]

An opaque octet stream that may be used to pass vendor-specific information necessary to do certain proprietary types of identification.

Trait Implementations

impl Eq for IdentificationType[src]

impl Clone for IdentificationType[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for IdentificationType[src]

impl PartialEq<IdentificationType> for IdentificationType[src]

impl Debug for IdentificationType[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]