pub struct SafeEncryptionContext<'a> {
pub component_id: ComponentId,
pub label: &'a str,
pub context: &'a [u8],
}Available on (32-bit or 64-bit) and crate feature
extensions-draft-08 only.Expand description
Context for safe_encrypt_with_label and safe_decrypt_with_label.
Fields§
§component_id: ComponentIdThe ComponentId to use.
label: &'a strA label
context: &'a [u8]An optional context.
Auto Trait Implementations§
impl<'a> Freeze for SafeEncryptionContext<'a>
impl<'a> RefUnwindSafe for SafeEncryptionContext<'a>
impl<'a> Send for SafeEncryptionContext<'a>
impl<'a> Sync for SafeEncryptionContext<'a>
impl<'a> Unpin for SafeEncryptionContext<'a>
impl<'a> UnwindSafe for SafeEncryptionContext<'a>
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more