pub struct IndexHeader { /* private fields */ }Expand description
The 1032-byte fanout/header of a previously authenticated v2 index. Parsing checks layout and fanout shape. It does NOT verify the full index checksum, ID ordering, or its relationship to pack contents. Establish those when importing/creating the index, before trusting lookup results or absence. The header and every range reply must refer to that same immutable snapshot.
Implementations§
Source§impl IndexHeader
impl IndexHeader
pub const BYTES: usize = 1032
pub fn parse( format: ObjectFormat, header: &[u8], index_bytes: u64, pack_bytes: u64, ) -> Result<IndexHeader, Error>
pub fn object_count(&self) -> u32
Auto Trait Implementations§
impl Freeze for IndexHeader
impl RefUnwindSafe for IndexHeader
impl Send for IndexHeader
impl Sync for IndexHeader
impl Unpin for IndexHeader
impl UnsafeUnpin for IndexHeader
impl UnwindSafe for IndexHeader
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