pub enum PrivateKeyKind {
Rsa(RsaPrivateKey),
Ecdsa(EcdsaPrivateKey),
Ed25519(Ed25519PrivateKey),
}Expand description
A type which represents the different kinds a public key can be.
Variants§
Rsa(RsaPrivateKey)
Represents an RSA public key.
Ecdsa(EcdsaPrivateKey)
Represents an ECDSA public key.
Ed25519(Ed25519PrivateKey)
Represents an ED25519 public key.
Trait Implementations§
Source§impl Clone for PrivateKeyKind
impl Clone for PrivateKeyKind
Source§fn clone(&self) -> PrivateKeyKind
fn clone(&self) -> PrivateKeyKind
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 PrivateKeyKind
impl Debug for PrivateKeyKind
Source§impl PartialEq for PrivateKeyKind
impl PartialEq for PrivateKeyKind
impl StructuralPartialEq for PrivateKeyKind
Auto Trait Implementations§
impl Freeze for PrivateKeyKind
impl RefUnwindSafe for PrivateKeyKind
impl Send for PrivateKeyKind
impl Sync for PrivateKeyKind
impl Unpin for PrivateKeyKind
impl UnsafeUnpin for PrivateKeyKind
impl UnwindSafe for PrivateKeyKind
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