pub struct CacheEncryptionEnvelope {
pub version: u8,
pub algorithm: u8,
pub flags: u16,
pub record_binding_hash: [u8; 32],
pub chunk_index: u64,
pub packet_offset: u64,
pub plaintext_length: u32,
pub nonce: [u8; 24],
pub ciphertext: Vec<u8>,
}Fields§
§version: u8§algorithm: u8§flags: u16§record_binding_hash: [u8; 32]§chunk_index: u64§packet_offset: u64§plaintext_length: u32§nonce: [u8; 24]§ciphertext: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for CacheEncryptionEnvelope
impl Clone for CacheEncryptionEnvelope
Source§fn clone(&self) -> CacheEncryptionEnvelope
fn clone(&self) -> CacheEncryptionEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheEncryptionEnvelope
impl Debug for CacheEncryptionEnvelope
impl Eq for CacheEncryptionEnvelope
Source§impl PartialEq for CacheEncryptionEnvelope
impl PartialEq for CacheEncryptionEnvelope
Source§fn eq(&self, other: &CacheEncryptionEnvelope) -> bool
fn eq(&self, other: &CacheEncryptionEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheEncryptionEnvelope
Auto Trait Implementations§
impl Freeze for CacheEncryptionEnvelope
impl RefUnwindSafe for CacheEncryptionEnvelope
impl Send for CacheEncryptionEnvelope
impl Sync for CacheEncryptionEnvelope
impl Unpin for CacheEncryptionEnvelope
impl UnsafeUnpin for CacheEncryptionEnvelope
impl UnwindSafe for CacheEncryptionEnvelope
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