Enum gpgme::KeyAlgorithm
[−]
[src]
pub enum KeyAlgorithm { Rsa, RsaEncrypt, RsaSign, ElgamalEncrypt, Dsa, Ecc, Elgamal, Ecdsa, Ecdh, Eddsa, Other(gpgme_pubkey_algo_t), }
Variants
Rsa
RsaEncrypt
RsaSign
ElgamalEncrypt
Dsa
Ecc
Elgamal
Ecdsa
Ecdh
Eddsa
Other(gpgme_pubkey_algo_t)
Methods
impl KeyAlgorithm
[src]
unsafe fn from_raw(raw: gpgme_pubkey_algo_t) -> KeyAlgorithm
fn raw(&self) -> gpgme_pubkey_algo_t
impl KeyAlgorithm
[src]
fn name(&self) -> Result<&'static str, Option<Utf8Error>>
fn name_raw(&self) -> Option<&'static CStr>
Trait Implementations
impl Copy for KeyAlgorithm
[src]
impl Clone for KeyAlgorithm
[src]
fn clone(&self) -> KeyAlgorithm
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 KeyAlgorithm
[src]
impl PartialEq for KeyAlgorithm
[src]
fn eq(&self, __arg_0: &KeyAlgorithm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &KeyAlgorithm) -> bool
This method tests for !=
.
impl Hash for KeyAlgorithm
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.