Struct openssl::pkey::Id [−][src]
pub struct Id(_);
An identifier of a kind of key.
Methods
impl Id
[src]
impl Id
pub fn from_raw(value: c_int) -> Id
[src]
pub fn from_raw(value: c_int) -> Id
Creates a Id
from an integer representation.
pub fn as_raw(&self) -> c_int
[src]
pub fn as_raw(&self) -> c_int
Returns the integer representation of the Id
.
pub const RSA: Id
RSA: Id = Id(ffi::EVP_PKEY_RSA)
pub const HMAC: Id
HMAC: Id = Id(ffi::EVP_PKEY_HMAC)
pub const DSA: Id
DSA: Id = Id(ffi::EVP_PKEY_DSA)
pub const DH: Id
DH: Id = Id(ffi::EVP_PKEY_DH)
pub const EC: Id
EC: Id = Id(ffi::EVP_PKEY_EC)
Trait Implementations
impl Debug for Id
[src]
impl Debug for Id
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Id
[src]
impl Copy for Id
impl Clone for Id
[src]
impl Clone for Id
fn clone(&self) -> Id
[src]
fn clone(&self) -> Id
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Id
[src]
impl PartialEq for Id
fn eq(&self, other: &Id) -> bool
[src]
fn eq(&self, other: &Id) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Id) -> bool
[src]
fn ne(&self, other: &Id) -> bool
This method tests for !=
.
impl Eq for Id
[src]
impl Eq for Id