pub enum BlockType {
PublicKey,
PublicKeyPKCS1(PKCS1Type),
PublicKeyPKCS8,
PublicKeyOpenssh,
PrivateKey,
PrivateKeyPKCS1(PKCS1Type),
PrivateKeyPKCS8,
PrivateKeyOpenssh,
Message,
MultiPartMessage(usize, usize),
Signature,
File,
}
Expand description
Armor block types.
Both OpenPGP (RFC4880) and OpenSSL PEM armor types are included.
Variants§
PublicKey
PGP public key
PublicKeyPKCS1(PKCS1Type)
PEM encoded PKCS#1 public key
PublicKeyPKCS8
PEM encoded PKCS#8 public key
PublicKeyOpenssh
Public key OpenSSH
PrivateKey
PGP private key
PrivateKeyPKCS1(PKCS1Type)
PEM encoded PKCS#1 private key
PrivateKeyPKCS8
PEM encoded PKCS#8 private key
PrivateKeyOpenssh
OpenSSH private key
Message
MultiPartMessage(usize, usize)
Signature
File
Trait Implementations§
source§impl PartialEq for BlockType
impl PartialEq for BlockType
impl Copy for BlockType
impl Eq for BlockType
impl StructuralPartialEq for BlockType
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnwindSafe for BlockType
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