pub enum StoredRecord {
Plaintext(Record),
Encrypted {
metered_size: usize,
record: EncryptedRecord,
},
}Variants§
Plaintext(Record)
Encrypted
Encrypted envelope record bytes plus the logical plaintext metered size.
The stored metered_size must match the decrypted envelope record’s
metered size. Decoding preserves the encoded prefix, and decryption
validates it before returning a logical record.
Implementations§
Source§impl StoredRecord
impl StoredRecord
pub fn encryption_algorithm(&self) -> Option<EncryptionAlgorithm>
pub fn max_assignable_seq_num(&self) -> SeqNum
Trait Implementations§
Source§impl Clone for StoredRecord
impl Clone for StoredRecord
Source§fn clone(&self) -> StoredRecord
fn clone(&self) -> StoredRecord
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 StoredRecord
impl Debug for StoredRecord
Source§impl DeepSize for StoredRecord
impl DeepSize for StoredRecord
impl Eq for StoredRecord
Source§impl From<Record> for StoredRecord
impl From<Record> for StoredRecord
Source§impl MeteredSize for StoredRecord
impl MeteredSize for StoredRecord
Source§fn metered_size(&self) -> usize
fn metered_size(&self) -> usize
Return the metered size of a record or batch of records.
Source§impl PartialEq for StoredRecord
impl PartialEq for StoredRecord
Source§fn eq(&self, other: &StoredRecord) -> bool
fn eq(&self, other: &StoredRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoredRecord
Auto Trait Implementations§
impl !Freeze for StoredRecord
impl RefUnwindSafe for StoredRecord
impl Send for StoredRecord
impl Sync for StoredRecord
impl Unpin for StoredRecord
impl UnsafeUnpin for StoredRecord
impl UnwindSafe for StoredRecord
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