pub struct ReusablePackCandidate {
pub pack: Arc<[u8]>,
pub pack_path: Option<PathBuf>,
pub entries: Vec<PackIndexEntry>,
pub pack_checksum: ObjectId,
}Expand description
One existing pack offered for transfer-pack entry reuse.
As with ObjectReader::read_object, the reader guarantees that each oid
maps to its canonical object. Reachable-pack generation independently
verifies the pack checksum, header, entry boundaries, and every reused
delta base before emitting any candidate bytes.
Fields§
§pack: Arc<[u8]>In-memory pack bytes supplied by generic readers.
pack_path: Option<PathBuf>File-backed pack source supplied by filesystem readers. When present, reachable-pack reuse validates and streams this path through the ODB’s mmap-capable loader instead of copying the complete pack into the heap.
entries: Vec<PackIndexEntry>§pack_checksum: ObjectIdTrait Implementations§
Source§impl Clone for ReusablePackCandidate
impl Clone for ReusablePackCandidate
Auto Trait Implementations§
impl Freeze for ReusablePackCandidate
impl RefUnwindSafe for ReusablePackCandidate
impl Send for ReusablePackCandidate
impl Sync for ReusablePackCandidate
impl Unpin for ReusablePackCandidate
impl UnsafeUnpin for ReusablePackCandidate
impl UnwindSafe for ReusablePackCandidate
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