Enum ssh_key::public::KeyData [−][src]
#[non_exhaustive]
pub enum KeyData {
Dsa(DsaPublicKey),
Ecdsa(EcdsaPublicKey),
Ed25519(Ed25519PublicKey),
Rsa(RsaPublicKey),
}Expand description
Public key data.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Dsa(DsaPublicKey)
Tuple Fields
0: DsaPublicKeyalloc only.Digital Signature Algorithm (DSA) public key data.
Ecdsa(EcdsaPublicKey)
Tuple Fields
sec1 only.Elliptic Curve Digital Signature Algorithm (ECDSA) public key data.
Ed25519(Ed25519PublicKey)
Tuple Fields
Ed25519 public key data.
Rsa(RsaPublicKey)
Tuple Fields
0: RsaPublicKeyalloc only.RSA public key data.
Implementations
This is supported on crate feature alloc only.
alloc only.Get ECDSA public key if this key is the correct type.
This is supported on crate feature sec1 only.
sec1 only.Get ECDSA public key if this key is the correct type.
Get Ed25519 public key if this key is the correct type.
This is supported on crate feature alloc only.
alloc only.Get RSA public key if this key is the correct type.
This is supported on crate feature alloc only.
alloc only.Is this key a DSA key?
This is supported on crate feature sec1 only.
sec1 only.Is this key an ECDSA key?
Is this key an Ed25519 key?
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for KeyData
impl UnwindSafe for KeyData
Blanket Implementations
Mutably borrows from an owned value. Read more