#[non_exhaustive]pub enum PemLabel {
PrivateKey,
EcPrivateKey,
PublicKey,
}Expand description
Supported PEM labels.
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.
PrivateKey
PKCS#8 private key material.
EcPrivateKey
SEC1 elliptic-curve private key material.
PublicKey
SubjectPublicKeyInfo public key material.
Implementations§
Trait Implementations§
impl Copy for PemLabel
impl Eq for PemLabel
impl StructuralPartialEq for PemLabel
Auto Trait Implementations§
impl Freeze for PemLabel
impl RefUnwindSafe for PemLabel
impl Send for PemLabel
impl Sync for PemLabel
impl Unpin for PemLabel
impl UnsafeUnpin for PemLabel
impl UnwindSafe for PemLabel
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