pub struct IndexJob {
pub pack_id: u64,
pub offset: u64,
pub len: u64,
}Expand description
One unit of index work. Offsets and extents only — never a buffer.
24 bytes, Copy, 'static: nothing in it borrows the pushed pack, so the
ack path can drop the client’s buffer the instant append returns.
Fields§
§pack_id: u64Dense id assigned at append time; the key the “indexed” bit is kept under.
offset: u64Where the verbatim pack bytes start in the archive.
len: u64How many bytes.
Trait Implementations§
impl Copy for IndexJob
impl Eq for IndexJob
impl StructuralPartialEq for IndexJob
Auto Trait Implementations§
impl Freeze for IndexJob
impl RefUnwindSafe for IndexJob
impl Send for IndexJob
impl Sync for IndexJob
impl Unpin for IndexJob
impl UnsafeUnpin for IndexJob
impl UnwindSafe for IndexJob
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.