pub struct Snapshot {
pub phase: Option<Phase>,
pub seq: u64,
pub begun: Vec<(Phase, Instant)>,
pub done: u64,
pub total: Option<u64>,
pub unit: Unit,
pub statements: u64,
pub terms: u64,
pub chunks: u64,
pub spill_dir: Option<PathBuf>,
}Expand description
One sample of the published state.
Fields§
§phase: Option<Phase>The phase begun last (None before the first).
seq: u64How many phases have begun: changes whenever phase does.
begun: Vec<(Phase, Instant)>Every phase begun since listen, with when, in order — so a
renderer sampling now and then still learns of a phase that began and
ended between two samples, and how long each one took.
done: u64How far through the phase, in units.
total: Option<u64>The phase’s total, when known.
unit: UnitWhat done and total count.
statements: u64Statements read so far (the parse), then as counted by the builder.
terms: u64Distinct dictionary terms, once the dictionary is built.
chunks: u64Chunks the memory-bounded build has sealed.
spill_dir: Option<PathBuf>The memory-bounded build’s spill directory while it exists.
Implementations§
Trait Implementations§
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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