Struct lair_keystore_api::internal::crypto_box::CryptoBoxEncryptedData [−][src]
pub struct CryptoBoxEncryptedData {
pub nonce: CryptoBoxNonce,
pub encrypted_data: Arc<Vec<u8>>,
}
Expand description
The nonce and encrypted data together. @todo include additional associated data?
Fields
nonce: CryptoBoxNonce
The nonce generated during encryption. We never allow nonce to be set externally so we need to return it.
encrypted_data: Arc<Vec<u8>>
The encrypted version of our input data.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CryptoBoxEncryptedData
impl Send for CryptoBoxEncryptedData
impl Sync for CryptoBoxEncryptedData
impl Unpin for CryptoBoxEncryptedData
impl UnwindSafe for CryptoBoxEncryptedData
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more