pub struct PackRecord {
pub object: ManifestObject,
pub offset: u64,
pub length: u64,
pub encoded_digest: ContentHash,
}Expand description
One object’s physical slice of a pack.
encoded_digest is the BLAKE3 of the encoded record bytes — the bytes as
they sit in the pack, before decompression or delta resolution. It lets a
receiver validate every record independently instead of trusting the whole
range.
Fields§
§object: ManifestObject§offset: u64Byte offset of the encoded record within its pack.
length: u64Encoded length in bytes. Zero-length records are not representable in a gap-free partition and are rejected by fsck.
encoded_digest: ContentHashBLAKE3(encoded record bytes).
Implementations§
Source§impl PackRecord
impl PackRecord
pub fn new( object: ManifestObject, offset: u64, length: u64, encoded_digest: ContentHash, ) -> PackRecord
pub fn key(&self) -> ManifestKey
Trait Implementations§
Source§impl Clone for PackRecord
impl Clone for PackRecord
Source§fn clone(&self) -> PackRecord
fn clone(&self) -> PackRecord
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 moreimpl Copy for PackRecord
Source§impl Debug for PackRecord
impl Debug for PackRecord
impl Eq for PackRecord
Source§impl PartialEq for PackRecord
impl PartialEq for PackRecord
impl StructuralPartialEq for PackRecord
Auto Trait Implementations§
impl Freeze for PackRecord
impl RefUnwindSafe for PackRecord
impl Send for PackRecord
impl Sync for PackRecord
impl Unpin for PackRecord
impl UnsafeUnpin for PackRecord
impl UnwindSafe for PackRecord
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