#[non_exhaustive]pub enum KeyPurpose {
DeviceAttestation,
Operational,
Ephemeral,
}Expand description
What a private key is for, so a store can apply different policy to each.
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.
DeviceAttestation
The Device Attestation Certificate’s key. Written at manufacture, never replaced, and the one most worth putting in hardware: it is what proves the device is genuine.
Operational
A Node Operational Certificate’s key, one per fabric. Created during commissioning, destroyed when the fabric is removed.
Ephemeral
An ephemeral key for one session establishment, discarded when it completes.
Trait Implementations§
Source§impl Clone for KeyPurpose
impl Clone for KeyPurpose
impl Copy for KeyPurpose
Source§impl Debug for KeyPurpose
impl Debug for KeyPurpose
impl Eq for KeyPurpose
Source§impl Hash for KeyPurpose
impl Hash for KeyPurpose
Source§impl PartialEq for KeyPurpose
impl PartialEq for KeyPurpose
impl StructuralPartialEq for KeyPurpose
Auto Trait Implementations§
impl Forget for KeyPurpose
impl Freeze for KeyPurpose
impl Move for KeyPurpose
impl RefUnwindSafe for KeyPurpose
impl Send for KeyPurpose
impl Sync for KeyPurpose
impl Unpin for KeyPurpose
impl UnsafeUnpin for KeyPurpose
impl UnwindSafe for KeyPurpose
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