pub struct MidxBitmapWriter;Expand description
Writes .bitmap sidecars for multi-pack-index files (MIDX checksum in header).
Implementations§
Source§impl MidxBitmapWriter
impl MidxBitmapWriter
Sourcepub fn write_for_midx_layer(
repo: &Repository,
midx_bytes: &[u8],
rid_order: &[u32],
midx_checksum: &[u8],
bitmap_path: &Path,
options: &PackBitmapWriteOptions,
) -> Result<PathBuf, PackBitmapWriteError>
pub fn write_for_midx_layer( repo: &Repository, midx_bytes: &[u8], rid_order: &[u32], midx_checksum: &[u8], bitmap_path: &Path, options: &PackBitmapWriteOptions, ) -> Result<PathBuf, PackBitmapWriteError>
Write a reachability bitmap for a MIDX layer that was just serialized to midx_bytes.
Sourcepub fn write(
repo: &Repository,
_pack_dir: &Path,
midx_checksum: &[u8],
bitmap_path: &Path,
options: &PackBitmapWriteOptions,
_now: SystemTime,
) -> Result<PathBuf, PackBitmapWriteError>
pub fn write( repo: &Repository, _pack_dir: &Path, midx_checksum: &[u8], bitmap_path: &Path, options: &PackBitmapWriteOptions, _now: SystemTime, ) -> Result<PathBuf, PackBitmapWriteError>
Write a reachability bitmap for the tip MIDX under pack_dir.
The bitmap header checksum must match the MIDX file checksum (midx_checksum).
§Errors
Returns PackBitmapWriteError::NotClosed when objects reachable from ref
tips are missing from the MIDX pseudo-pack order.
Auto Trait Implementations§
impl Freeze for MidxBitmapWriter
impl RefUnwindSafe for MidxBitmapWriter
impl Send for MidxBitmapWriter
impl Sync for MidxBitmapWriter
impl Unpin for MidxBitmapWriter
impl UnsafeUnpin for MidxBitmapWriter
impl UnwindSafe for MidxBitmapWriter
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