pub enum KeyPurpose {
Data,
Metadata,
}
Expand description
Different keys are used for metadata and data in order to make certain operations requiring a metadata key rotation (e.g. secure erase) more efficient.
Variants§
Data
The key will be used to wrap user data.
Metadata
The key will be used to wrap internal metadata.
Auto Trait Implementations§
impl Freeze for KeyPurpose
impl RefUnwindSafe for KeyPurpose
impl Send for KeyPurpose
impl Sync for KeyPurpose
impl Unpin 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