Enum gcrypt::pkey::Algorithm
[−]
[src]
pub enum Algorithm { Rsa, RsaEncrypt, RsaSign, ElgEncrypt, Dsa, Ecc, Elg, Ecdsa, Ecdh, Eddsa, Other(c_int), }
Variants
Rsa
RsaEncrypt
RsaSign
ElgEncrypt
Dsa
Ecc
Elg
Ecdsa
Ecdh
Eddsa
Other(c_int)
Methods
impl Algorithm
[src]
impl Algorithm
[src]
fn from_name<S: Into<String>>(name: S) -> Option<Algorithm>
fn is_available(&self) -> bool
fn name(&self) -> Result<&'static str, Option<Utf8Error>>
fn name_raw(&self) -> Option<&'static CStr>
Trait Implementations
impl Copy for Algorithm
[src]
impl Clone for Algorithm
[src]
fn clone(&self) -> Algorithm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Algorithm
[src]
impl PartialEq for Algorithm
[src]
fn eq(&self, __arg_0: &Algorithm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Algorithm) -> bool
This method tests for !=
.
impl Hash for Algorithm
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more