pub struct ObjectChunk {
pub key: KeyId,
pub section: u64,
pub index: u64,
pub plaintext_length: usize,
}Expand description
Coordinates, selected key and exact plaintext length of the next chunk.
Fields§
§key: KeyIdThe audience key to select by id.
section: u64Header 0, or part i + 1.
index: u64Zero-based position within that section.
plaintext_length: usizeExact plaintext size before adding the stored nonce and tag.
Trait Implementations§
Source§impl Clone for ObjectChunk
impl Clone for ObjectChunk
Source§fn clone(&self) -> ObjectChunk
fn clone(&self) -> ObjectChunk
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectChunk
impl Debug for ObjectChunk
Source§impl PartialEq for ObjectChunk
impl PartialEq for ObjectChunk
impl Copy for ObjectChunk
impl Eq for ObjectChunk
impl StructuralPartialEq for ObjectChunk
Auto Trait Implementations§
impl Freeze for ObjectChunk
impl RefUnwindSafe for ObjectChunk
impl Send for ObjectChunk
impl Sync for ObjectChunk
impl Unpin for ObjectChunk
impl UnsafeUnpin for ObjectChunk
impl UnwindSafe for ObjectChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more