pub struct IndexProgress { /* private fields */ }Expand description
The counter. Every field is an atomic so the hot path pays one relaxed add.
Implementations§
Source§impl IndexProgress
impl IndexProgress
Sourcepub fn new(root: &str) -> Arc<Self> ⓘ
pub fn new(root: &str) -> Arc<Self> ⓘ
A counter for the store rooted at root, registered process-wide.
pub fn root(&self) -> &str
Sourcepub fn begin(&self, pack_id: u64, bytes_total: u64, resumed: bool)
pub fn begin(&self, pack_id: u64, bytes_total: u64, resumed: bool)
A pack begins. resumed = the journal queued it, not a push in this process.
pub fn set_phase(&self, phase: Phase)
Sourcepub fn object_done(&self, bytes: u64)
pub fn object_done(&self, bytes: u64)
The hot-path call: one object resolved, covering bytes of the pack.
pub fn add_reinflations(&self, n: u64)
pub fn add_pause(&self)
Sourcepub fn sample_memory(&self)
pub fn sample_memory(&self)
pub fn snapshot(&self) -> Snapshot
Auto Trait Implementations§
impl !Freeze for IndexProgress
impl RefUnwindSafe for IndexProgress
impl Send for IndexProgress
impl Sync for IndexProgress
impl Unpin for IndexProgress
impl UnsafeUnpin for IndexProgress
impl UnwindSafe for IndexProgress
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