#[repr(u8)]pub enum PublicKeyAlgorithm {
Rsa = 1,
RsaEncryptOnly = 2,
RsaSignOnly = 3,
ElgamalEncryptOnly = 16,
Dsa = 17,
EllipticCurve = 18,
Ecdsa = 19,
Elgamal = 20,
DiffieHellman = 21,
Unknown = 255,
}Expand description
Type for public key algorithms supported by OpenPGP.
Variants§
Rsa = 1
RsaEncryptOnly = 2
RsaSignOnly = 3
ElgamalEncryptOnly = 16
Dsa = 17
EllipticCurve = 18
Ecdsa = 19
Elgamal = 20
DiffieHellman = 21
Unknown = 255
Trait Implementations§
Source§impl Clone for PublicKeyAlgorithm
impl Clone for PublicKeyAlgorithm
Source§fn clone(&self) -> PublicKeyAlgorithm
fn clone(&self) -> PublicKeyAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicKeyAlgorithm
impl Debug for PublicKeyAlgorithm
Source§impl From<PublicKeyAlgorithm> for u8
impl From<PublicKeyAlgorithm> for u8
Source§fn from(val: PublicKeyAlgorithm) -> u8
fn from(val: PublicKeyAlgorithm) -> u8
Converts to this type from the input type.
Source§impl From<u8> for PublicKeyAlgorithm
impl From<u8> for PublicKeyAlgorithm
Source§fn from(val: u8) -> PublicKeyAlgorithm
fn from(val: u8) -> PublicKeyAlgorithm
Converts to this type from the input type.
Source§impl PartialEq for PublicKeyAlgorithm
impl PartialEq for PublicKeyAlgorithm
impl Copy for PublicKeyAlgorithm
impl Eq for PublicKeyAlgorithm
impl StructuralPartialEq for PublicKeyAlgorithm
Auto Trait Implementations§
impl Freeze for PublicKeyAlgorithm
impl RefUnwindSafe for PublicKeyAlgorithm
impl Send for PublicKeyAlgorithm
impl Sync for PublicKeyAlgorithm
impl Unpin for PublicKeyAlgorithm
impl UnwindSafe for PublicKeyAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more