#[non_exhaustive]pub enum EncryptionContext {
Iv128(FixedLength<IV_LEN_128_BIT>),
None,
}
Expand description
The contextual data used to encrypt or decrypt data.
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.
Trait Implementations§
Source§impl Debug for EncryptionContext
impl Debug for EncryptionContext
Source§impl From<DecryptionContext> for EncryptionContext
impl From<DecryptionContext> for EncryptionContext
Source§fn from(value: DecryptionContext) -> Self
fn from(value: DecryptionContext) -> Self
Converts to this type from the input type.
Source§impl From<EncryptionContext> for DecryptionContext
impl From<EncryptionContext> for DecryptionContext
Source§fn from(value: EncryptionContext) -> Self
fn from(value: EncryptionContext) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a EncryptionContext> for &'a [u8]
impl<'a> TryFrom<&'a EncryptionContext> for &'a [u8]
Source§type Error = Unspecified
type Error = Unspecified
The type returned in the event of a conversion error.
Source§fn try_from(value: &'a EncryptionContext) -> Result<Self, Unspecified>
fn try_from(value: &'a EncryptionContext) -> Result<Self, Unspecified>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EncryptionContext
impl RefUnwindSafe for EncryptionContext
impl Send for EncryptionContext
impl Sync for EncryptionContext
impl Unpin for EncryptionContext
impl UnwindSafe for EncryptionContext
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