Skip to main content

IndexingProgress

Struct IndexingProgress 

Source
pub struct IndexingProgress {
Show 45 fields pub total: AtomicUsize, pub current: AtomicUsize, pub phase: AtomicUsize, pub is_rebuilding: AtomicBool, pub discovered_agents: AtomicUsize, pub discovered_agent_names: Mutex<Vec<String>>, pub last_error: Mutex<Option<String>>, pub stats: Mutex<IndexingStats>, pub rebuild_pipeline_queue_depth: AtomicUsize, pub rebuild_pipeline_inflight_message_bytes: AtomicUsize, pub rebuild_pipeline_pending_batch_conversations: AtomicUsize, pub rebuild_pipeline_pending_batch_message_bytes: AtomicUsize, pub rebuild_pipeline_page_prep_workers: AtomicUsize, pub rebuild_pipeline_active_page_prep_jobs: AtomicUsize, pub rebuild_pipeline_ordered_buffered_pages: AtomicUsize, pub rebuild_pipeline_budget_generation: AtomicUsize, pub rebuild_pipeline_producer_budget_wait_count: AtomicUsize, pub rebuild_pipeline_producer_budget_wait_ms: AtomicUsize, pub rebuild_pipeline_producer_handoff_wait_count: AtomicUsize, pub rebuild_pipeline_producer_handoff_wait_ms: AtomicUsize, pub rebuild_pipeline_host_loadavg_1m_milli: Mutex<Option<u32>>, pub rebuild_pipeline_host_available_memory_bytes: Mutex<Option<u64>>, pub rebuild_pipeline_process_rss_bytes: Mutex<Option<u64>>, pub rebuild_pipeline_controller_mode: Mutex<String>, pub rebuild_pipeline_controller_reason: Mutex<String>, pub rebuild_pipeline_staged_merge_workers_max: AtomicUsize, pub rebuild_pipeline_staged_merge_allowed_jobs: AtomicUsize, pub rebuild_pipeline_staged_merge_active_jobs: AtomicUsize, pub rebuild_pipeline_staged_merge_ready_artifacts: AtomicUsize, pub rebuild_pipeline_staged_merge_ready_groups: AtomicUsize, pub rebuild_pipeline_staged_merge_controller_reason: Mutex<String>, pub rebuild_pipeline_staged_shard_build_workers_max: AtomicUsize, pub rebuild_pipeline_staged_shard_build_allowed_jobs: AtomicUsize, pub rebuild_pipeline_staged_shard_build_active_jobs: AtomicUsize, pub rebuild_pipeline_staged_shard_build_pending_jobs: AtomicUsize, pub rebuild_pipeline_staged_shard_build_controller_reason: Mutex<String>, pub rebuild_pipeline_staged_shard_build_memory_reserve_bytes: AtomicUsize, pub rebuild_pipeline_staged_shard_build_emergency_memory_reserve_bytes: AtomicUsize, pub rebuild_pipeline_staged_shard_build_completed_jobs: AtomicUsize, pub rebuild_pipeline_staged_shard_build_last_shard_index: Mutex<Option<usize>>, pub rebuild_pipeline_staged_shard_build_last_message_bytes: AtomicUsize, pub rebuild_pipeline_staged_shard_build_last_index_size_bytes: AtomicU64, pub rebuild_pipeline_staged_shard_build_last_duration_ms: AtomicU64, pub rebuild_pipeline_staged_shard_build_last_amplification_milli: Mutex<Option<u64>>, pub rebuild_pipeline_staged_shard_build_observed_amplification_milli: Mutex<Option<u64>>,
}

Fields§

§total: AtomicUsize§current: AtomicUsize§phase: AtomicUsize§is_rebuilding: AtomicBool§discovered_agents: AtomicUsize

Number of coding agents discovered so far during scanning

§discovered_agent_names: Mutex<Vec<String>>

Names of discovered agents (protected by mutex for concurrent access)

§last_error: Mutex<Option<String>>

Last error message from background indexer, if any

§stats: Mutex<IndexingStats>

Structured stats for JSON output (T7.4)

§rebuild_pipeline_queue_depth: AtomicUsize

Live authoritative rebuild queue depth for same-process progress output.

§rebuild_pipeline_inflight_message_bytes: AtomicUsize

Live authoritative rebuild in-flight byte budget usage.

§rebuild_pipeline_pending_batch_conversations: AtomicUsize

Conversations currently buffered in the sink-side pending batch.

§rebuild_pipeline_pending_batch_message_bytes: AtomicUsize

Message bytes currently buffered in the sink-side pending batch.

§rebuild_pipeline_page_prep_workers: AtomicUsize

Configured producer-side page-prep worker count for the active rebuild.

§rebuild_pipeline_active_page_prep_jobs: AtomicUsize

Producer-side page-prep jobs currently queued or running in workers.

§rebuild_pipeline_ordered_buffered_pages: AtomicUsize

Prepared pages waiting behind the ordered handoff barrier.

§rebuild_pipeline_budget_generation: AtomicUsize

Runtime budget generation observed by the rebuild pipeline.

§rebuild_pipeline_producer_budget_wait_count: AtomicUsize

Producer-side waits on the in-flight byte budget.

§rebuild_pipeline_producer_budget_wait_ms: AtomicUsize

Producer-side milliseconds spent waiting on the in-flight byte budget.

§rebuild_pipeline_producer_handoff_wait_count: AtomicUsize

Producer-side waits on bounded sink handoff.

§rebuild_pipeline_producer_handoff_wait_ms: AtomicUsize

Producer-side milliseconds spent waiting on bounded sink handoff.

§rebuild_pipeline_host_loadavg_1m_milli: Mutex<Option<u32>>

Sampled host 1-minute load average while the rebuild is active, in milli-loadavg units.

§rebuild_pipeline_host_available_memory_bytes: Mutex<Option<u64>>

Sampled host MemAvailable while the rebuild is active.

§rebuild_pipeline_process_rss_bytes: Mutex<Option<u64>>

Sampled process resident set size while the rebuild is active.

§rebuild_pipeline_controller_mode: Mutex<String>

Human-readable runtime controller mode for the active rebuild.

§rebuild_pipeline_controller_reason: Mutex<String>

Human-readable reason explaining the current controller mode.

§rebuild_pipeline_staged_merge_workers_max: AtomicUsize

Maximum staged eager-merge workers available for the active rebuild.

§rebuild_pipeline_staged_merge_allowed_jobs: AtomicUsize

Current staged eager-merge concurrency budget after adaptive throttling.

§rebuild_pipeline_staged_merge_active_jobs: AtomicUsize

Staged eager-merge jobs currently running.

§rebuild_pipeline_staged_merge_ready_artifacts: AtomicUsize

Ready staged merge artifacts waiting in the reduction frontier.

§rebuild_pipeline_staged_merge_ready_groups: AtomicUsize

Full staged merge groups currently ready to run.

§rebuild_pipeline_staged_merge_controller_reason: Mutex<String>

Human-readable reason explaining the current staged merge budget.

§rebuild_pipeline_staged_shard_build_workers_max: AtomicUsize

Maximum staged shard-build workers available for the active rebuild.

§rebuild_pipeline_staged_shard_build_allowed_jobs: AtomicUsize

Current staged shard-build concurrency budget after adaptive throttling.

§rebuild_pipeline_staged_shard_build_active_jobs: AtomicUsize

Staged shard-build jobs currently running.

§rebuild_pipeline_staged_shard_build_pending_jobs: AtomicUsize

Staged shard-build jobs buffered behind the adaptive dispatch gate.

§rebuild_pipeline_staged_shard_build_controller_reason: Mutex<String>

Human-readable reason explaining the current staged shard-build budget.

§rebuild_pipeline_staged_shard_build_memory_reserve_bytes: AtomicUsize

Host memory reserve below which new staged shard builds are throttled.

§rebuild_pipeline_staged_shard_build_emergency_memory_reserve_bytes: AtomicUsize

Host memory reserve below which new staged shard builds are paused.

§rebuild_pipeline_staged_shard_build_completed_jobs: AtomicUsize

Completed staged shard-build jobs in the active rebuild.

§rebuild_pipeline_staged_shard_build_last_shard_index: Mutex<Option<usize>>

Last completed staged shard index.

§rebuild_pipeline_staged_shard_build_last_message_bytes: AtomicUsize

Raw message bytes in the last completed staged shard.

§rebuild_pipeline_staged_shard_build_last_index_size_bytes: AtomicU64

On-disk bytes in the last completed staged shard index.

§rebuild_pipeline_staged_shard_build_last_duration_ms: AtomicU64

Wall-clock milliseconds spent building the last staged shard.

§rebuild_pipeline_staged_shard_build_last_amplification_milli: Mutex<Option<u64>>

Last observed index-size/raw-message-byte amplification in milli-units.

§rebuild_pipeline_staged_shard_build_observed_amplification_milli: Mutex<Option<u64>>

Conservative observed amplification used by staged shard admission.

Implementations§

Source§

impl IndexingProgress

Source

pub fn phase_label(&self) -> &'static str

Human-readable label for the current phase. 0 = preparing (pre-scan), 1 = scanning, 2 = indexing.

Source

pub fn snapshot_json(&self, elapsed_ms: u128) -> Value

Capture a JSON snapshot of the current progress state, suitable for NDJSON event streaming. elapsed_ms is the wall-clock elapsed since the index command started (caller’s responsibility to track).

Trait Implementations§

Source§

impl Debug for IndexingProgress

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IndexingProgress

Source§

fn default() -> IndexingProgress

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, _span: NoopSpan) -> Self

Instruments this future with a span (no-op when disabled).
Source§

fn in_current_span(self) -> Self

Instruments this future with the current span (no-op when disabled).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Fruit for T
where T: Send + Downcast,