pub enum KeyUsage {
Encrypt,
Decrypt,
}Expand description
What a stored key may be used for. A key has one role for as long as it is stored (RFC 9605 section 4.4.1).
Variants§
Encrypt
The key encrypts; this endpoint is its one sender.
Decrypt
The key decrypts what another sender encrypted.
Trait Implementations§
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl Forget for KeyUsage
impl Freeze for KeyUsage
impl Move for KeyUsage
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnsafeUnpin for KeyUsage
impl UnwindSafe for KeyUsage
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