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]
impl KeyAlgorithm
pub unsafe fn from_raw(raw: gpgme_pubkey_algo_t) -> KeyAlgorithm
[src]
pub unsafe fn from_raw(raw: gpgme_pubkey_algo_t) -> KeyAlgorithm
pub fn raw(&self) -> gpgme_pubkey_algo_t
[src]
pub fn raw(&self) -> gpgme_pubkey_algo_t
impl KeyAlgorithm
[src]
impl KeyAlgorithm
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
[src]
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
pub fn name_raw(&self) -> Option<&'static CStr>
[src]
pub fn name_raw(&self) -> Option<&'static CStr>
Trait Implementations
impl Copy for KeyAlgorithm
[src]
impl Copy for KeyAlgorithm
impl Clone for KeyAlgorithm
[src]
impl Clone for KeyAlgorithm
fn clone(&self) -> KeyAlgorithm
[src]
fn clone(&self) -> KeyAlgorithm
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 Eq for KeyAlgorithm
[src]
impl Eq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
[src]
impl PartialEq for KeyAlgorithm
fn eq(&self, other: &KeyAlgorithm) -> bool
[src]
fn eq(&self, other: &KeyAlgorithm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyAlgorithm) -> bool
[src]
fn ne(&self, other: &KeyAlgorithm) -> bool
This method tests for !=
.
impl Hash for KeyAlgorithm
[src]
impl Hash for KeyAlgorithm
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &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[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for KeyAlgorithm
[src]
impl Debug for KeyAlgorithm
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 Display for KeyAlgorithm
[src]
impl Display for KeyAlgorithm
Auto Trait Implementations
impl Send for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Sync for KeyAlgorithm