Enum pretty_good::PublicKeyAlgorithm
[−]
[src]
#[repr(u8)]pub enum PublicKeyAlgorithm { Rsa, RsaEncryptOnly, RsaSignOnly, ElgamalEncryptOnly, Dsa, EllipticCurve, Ecdsa, Elgamal, DiffieHellman, Unknown, }
Type for public key algorithms supported by OpenPGP.
Variants
Rsa
RsaEncryptOnly
RsaSignOnly
ElgamalEncryptOnly
Dsa
EllipticCurve
Ecdsa
Elgamal
DiffieHellman
Unknown
Trait Implementations
impl Clone for PublicKeyAlgorithm
[src]
fn clone(&self) -> PublicKeyAlgorithm
[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 Copy for PublicKeyAlgorithm
[src]
impl Debug for PublicKeyAlgorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PublicKeyAlgorithm
[src]
fn eq(&self, __arg_0: &PublicKeyAlgorithm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for PublicKeyAlgorithm
[src]
impl From<u8> for PublicKeyAlgorithm
[src]
fn from(val: u8) -> PublicKeyAlgorithm
[src]
Performs the conversion.
impl From<PublicKeyAlgorithm> for u8
[src]
fn from(val: PublicKeyAlgorithm) -> u8
[src]
Performs the conversion.