Struct clevis::EncryptionKey
source · pub struct EncryptionKey<const KEYBYTES: usize>(/* private fields */);Expand description
A zeroizing wrapper around a generated encryption key
Implementations§
Trait Implementations§
source§impl<const KEYBYTES: usize> Clone for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> Clone for EncryptionKey<KEYBYTES>
source§fn clone(&self) -> EncryptionKey<KEYBYTES>
fn clone(&self) -> EncryptionKey<KEYBYTES>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<const KEYBYTES: usize> ConstantTimeEq for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> ConstantTimeEq for EncryptionKey<KEYBYTES>
source§impl<const KEYBYTES: usize> Debug for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> Debug for EncryptionKey<KEYBYTES>
Auto Trait Implementations§
impl<const KEYBYTES: usize> RefUnwindSafe for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> Send for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> Sync for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> Unpin for EncryptionKey<KEYBYTES>
impl<const KEYBYTES: usize> UnwindSafe for EncryptionKey<KEYBYTES>
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