#[non_exhaustive]pub enum KeyMaterialKind {
NotKey,
PublicKey,
PrivateKey,
SymmetricKey,
}Expand description
Semantic key-material classification for a supported multicodec entry.
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.
NotKey
The entry does not identify raw key material.
PublicKey
Public key material.
PrivateKey
Private key material.
SymmetricKey
Symmetric key material.
Trait Implementations§
Source§impl Clone for KeyMaterialKind
impl Clone for KeyMaterialKind
Source§fn clone(&self) -> KeyMaterialKind
fn clone(&self) -> KeyMaterialKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyMaterialKind
Source§impl Debug for KeyMaterialKind
impl Debug for KeyMaterialKind
impl Eq for KeyMaterialKind
Source§impl PartialEq for KeyMaterialKind
impl PartialEq for KeyMaterialKind
impl StructuralPartialEq for KeyMaterialKind
Auto Trait Implementations§
impl Freeze for KeyMaterialKind
impl RefUnwindSafe for KeyMaterialKind
impl Send for KeyMaterialKind
impl Sync for KeyMaterialKind
impl Unpin for KeyMaterialKind
impl UnsafeUnpin for KeyMaterialKind
impl UnwindSafe for KeyMaterialKind
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