pub struct FileChunk {
pub index: u64,
pub offset: u64,
pub plaintext_length: usize,
}Expand description
One file chunk’s coordinates, computed from its header.
Fields§
§index: u64Zero-based index; also the chunk’s nonce.
offset: u64Byte offset in the stored object, including its 11-byte header.
plaintext_length: usizeExact plaintext length; the stored length adds a 16-byte tag.
Implementations§
Trait Implementations§
impl Copy for FileChunk
impl Eq for FileChunk
impl StructuralPartialEq for FileChunk
Auto Trait Implementations§
impl Freeze for FileChunk
impl RefUnwindSafe for FileChunk
impl Send for FileChunk
impl Sync for FileChunk
impl Unpin for FileChunk
impl UnsafeUnpin for FileChunk
impl UnwindSafe for FileChunk
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