[][src]Struct ipsec_parser::IdentificationType

pub struct IdentificationType(pub u8);

Type of Identification

Implementations

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 Clone for IdentificationType[src]

impl Copy for IdentificationType[src]

impl Debug for IdentificationType[src]

impl Eq for IdentificationType[src]

impl PartialEq<IdentificationType> for IdentificationType[src]

impl StructuralEq for IdentificationType[src]

impl StructuralPartialEq for IdentificationType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.