#[non_exhaustive]pub enum AccessKind {
Register,
Unregister,
Read,
Rotate,
OneShotFragment,
OneShotDefragment,
MasterUnlockAttempt {
matched: bool,
},
}Expand description
Discriminant of the operation an AuditEvent describes.
#[non_exhaustive] — new variants are additive.
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.
Register
A new named key was registered via
KeyVault::register.
Unregister
A registered key was removed via
KeyVault::unregister.
Read
The key was accessed in a scoped callback via
KeyVault::with_key.
Rotate
The key was rotated to fresh material via
KeyVault::rotate.
OneShotFragment
A one-shot KeyVault::fragment
call (no registry entry).
OneShotDefragment
A one-shot KeyVault::defragment
call.
MasterUnlockAttempt
A master-key emergency-unlock attempt. The boolean reports whether the supplied bytes matched the stored digest.
Trait Implementations§
Source§impl Clone for AccessKind
impl Clone for AccessKind
Source§fn clone(&self) -> AccessKind
fn clone(&self) -> AccessKind
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 moreSource§impl Debug for AccessKind
impl Debug for AccessKind
Source§impl Display for AccessKind
impl Display for AccessKind
Source§impl Hash for AccessKind
impl Hash for AccessKind
Source§impl PartialEq for AccessKind
impl PartialEq for AccessKind
Source§fn eq(&self, other: &AccessKind) -> bool
fn eq(&self, other: &AccessKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AccessKind
impl Eq for AccessKind
impl StructuralPartialEq for AccessKind
Auto Trait Implementations§
impl Freeze for AccessKind
impl RefUnwindSafe for AccessKind
impl Send for AccessKind
impl Sync for AccessKind
impl Unpin for AccessKind
impl UnsafeUnpin for AccessKind
impl UnwindSafe for AccessKind
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