#[non_exhaustive]pub enum PrivateKeyData {
Dsa(DsaPrivateKey),
Ecdsa(EcdsaPrivateKey),
Ed25519(Ed25519Keypair),
Rsa(RsaPrivateKey),
}
Expand description
Private key data stored within a Credential
object
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dsa(DsaPrivateKey)
Digital Signature Algorithm (DSA) private key.
Ecdsa(EcdsaPrivateKey)
ECDSA private key.
Ed25519(Ed25519Keypair)
Ed25519 key pair.
Rsa(RsaPrivateKey)
RSA private key.
Implementations§
Trait Implementations§
Source§impl Clone for PrivateKeyData
impl Clone for PrivateKeyData
Source§fn clone(&self) -> PrivateKeyData
fn clone(&self) -> PrivateKeyData
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 ConstantTimeEq for PrivateKeyData
impl ConstantTimeEq for PrivateKeyData
Source§impl Debug for PrivateKeyData
impl Debug for PrivateKeyData
Source§impl Encode for PrivateKeyData
impl Encode for PrivateKeyData
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.Source§impl PartialEq for PrivateKeyData
impl PartialEq for PrivateKeyData
impl Eq for PrivateKeyData
Auto Trait Implementations§
impl Freeze for PrivateKeyData
impl RefUnwindSafe for PrivateKeyData
impl Send for PrivateKeyData
impl Sync for PrivateKeyData
impl Unpin for PrivateKeyData
impl UnwindSafe for PrivateKeyData
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