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 Nid
s.
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 Nid
s and their usage
in OpenSSL.
Methods
impl Nid
[src]
pub fn from_raw(raw: c_int) -> Nid
[src]
Create a Nid
from an integer representation.
pub fn as_raw(&self) -> c_int
[src]
Return the integer representation of a Nid
.
Trait Implementations
impl Debug for Nid
[src]
impl Copy for Nid
[src]
impl Clone for Nid
[src]
fn clone(&self) -> Nid
[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 PartialEq for Nid
[src]
fn eq(&self, __arg_0: &Nid) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Nid) -> bool
[src]
This method tests for !=
.