Enum sshkeys::PublicKeyKind
source · pub enum PublicKeyKind {
Rsa(RsaPublicKey),
Dsa(DsaPublicKey),
Ecdsa(EcdsaPublicKey),
Ed25519(Ed25519PublicKey),
}
Expand description
A type which represents the different kinds a public key can be.
Variants§
Rsa(RsaPublicKey)
Represents an RSA public key.
Dsa(DsaPublicKey)
Represents a DSA public key.
Ecdsa(EcdsaPublicKey)
Represents an ECDSA public key.
Ed25519(Ed25519PublicKey)
Represents an ED25519 public key.
Trait Implementations§
source§impl Clone for PublicKeyKind
impl Clone for PublicKeyKind
source§fn clone(&self) -> PublicKeyKind
fn clone(&self) -> PublicKeyKind
Returns a copy 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 PublicKeyKind
impl Debug for PublicKeyKind
source§impl PartialEq for PublicKeyKind
impl PartialEq for PublicKeyKind
source§fn eq(&self, other: &PublicKeyKind) -> bool
fn eq(&self, other: &PublicKeyKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PublicKeyKind
Auto Trait Implementations§
impl Freeze for PublicKeyKind
impl RefUnwindSafe for PublicKeyKind
impl Send for PublicKeyKind
impl Sync for PublicKeyKind
impl Unpin for PublicKeyKind
impl UnwindSafe for PublicKeyKind
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