#[non_exhaustive]pub enum KeyMaterialKind {
NotKey,
PublicKey,
PrivateKey,
SymmetricKey,
}Expand description
Key-material class for codecs that carry raw key bytes.
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 codec is not raw key material.
PublicKey
Public key material that is safe for multikey verification methods.
PrivateKey
Private key material. The codec is known, but multikey must reject it.
SymmetricKey
Symmetric key material. The codec is known, but multikey must reject it.
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