Struct ipsec_parser::IdentificationType[][src]

pub struct IdentificationType(pub u8);
Expand description

Type of Identification

Tuple Fields

0: u8

Implementations

A single four (4) octet IPv4 address.

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

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.

A single sixteen (16) octet IPv6 address.

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

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

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.