Struct openssl::nid::Nid [] [src]

pub struct Nid(_);

A numerical identifier for an OpenSSL object.

Objects in OpenSSL can have a short name, a long name, and a numerical identifier (NID). For convenience, objects are usually represented in source code using these numeric identifiers.

Users should generally not need to create new Nids.

Examples

To view the integer representation of a Nid:

use openssl::nid;

assert!(nid::AES_256_GCM.as_raw() == 901);

External Documentation

The following documentation provides context about Nids and their usage in OpenSSL.

Methods

impl Nid
[src]

[src]

Create a Nid from an integer representation.

[src]

Return the integer representation of a Nid.

Trait Implementations

impl Debug for Nid
[src]

[src]

Formats the value using the given formatter.

impl Copy for Nid
[src]

impl Clone for Nid
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Nid
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Nid
[src]

impl Hash for Nid
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more