pub struct DbDiagnostics {Show 24 fields
pub build: BuildIdentity,
pub process: ProcessIdentity,
pub note_search_ann_route_total: u64,
pub note_search_fallback_route_total: u64,
pub search_mechanism: SearchMechanismSnapshot,
pub db_path: Option<String>,
pub wal_ceiling: WalCeilingDiagnostics,
pub disk_guard: DiskGuardDiagnostics,
pub wal_file: Option<WalFileState>,
pub checkpoint_counters: CheckpointCounters,
pub checkpoint_probe: Option<CheckpointProbe>,
pub checkpoint_probe_error: Option<String>,
pub checkpoint_pin: CheckpointPinDiagnostics,
pub reader_contention: ReaderContentionDiagnostics,
pub writer_contention: WriterContentionDiagnostics,
pub size_composition: Option<DatabaseSizeComposition>,
pub size_composition_error: Option<String>,
pub graph_edge_integrity: Option<GraphEdgeIntegrity>,
pub graph_edge_integrity_error: Option<String>,
pub fts_segments: Option<FtsSegmentDiagnostics>,
pub fts_segments_error: Option<String>,
pub fts_maintenance: FtsMaintenanceCounters,
pub wal_pin: WalPinAttribution,
pub collection_cost: CollectionCost,
}Fields§
§build: BuildIdentity§process: ProcessIdentity§note_search_ann_route_total: u64Process-lifetime note-search vector route counts, independent of this report’s database file and reset only with the serving process.
note_search_fallback_route_total: u64§search_mechanism: SearchMechanismSnapshotPool-scoped, monotonic coordinator dispatch and note-candidate hydration counts used by ADR-166 G4/G5. Reset on pool reconstruction.
db_path: Option<String>None for an in-memory backend — the file-backed sections then carry
their own unavailability reasons.
wal_ceiling: WalCeilingDiagnosticsExplicit WAL ceiling policy for this already-open database.
disk_guard: DiskGuardDiagnostics§wal_file: Option<WalFileState>§checkpoint_counters: CheckpointCounters§checkpoint_probe: Option<CheckpointProbe>§checkpoint_probe_error: Option<String>§checkpoint_pin: CheckpointPinDiagnosticsFrame pin fields serialized beside checkpoint_probe at the report root.
reader_contention: ReaderContentionDiagnosticsReader route, checkout saturation, and hold-lifecycle signals.
writer_contention: WriterContentionDiagnosticsWriter-pool and best-effort audit persistence signals.
size_composition: Option<DatabaseSizeComposition>§size_composition_error: Option<String>§graph_edge_integrity: Option<GraphEdgeIntegrity>§graph_edge_integrity_error: Option<String>§fts_segments: Option<FtsSegmentDiagnostics>Current FTS5 segment structure, decoded from each index’s documented
one-row structure record (shadow-table row id 10). This does not scan
either corpus or %_idx table.
fts_segments_error: Option<String>§fts_maintenance: FtsMaintenanceCountersProcess-lifetime outcomes from the checkpoint task’s bounded FTS5 maintenance steps.
wal_pin: WalPinAttribution§collection_cost: CollectionCostPer-section assembly cost for this report. See CollectionCost.
Trait Implementations§
Source§impl Clone for DbDiagnostics
impl Clone for DbDiagnostics
Source§impl Debug for DbDiagnostics
impl Debug for DbDiagnostics
Source§impl PartialEq for DbDiagnostics
impl PartialEq for DbDiagnostics
Source§impl Serialize for DbDiagnostics
impl Serialize for DbDiagnostics
impl StructuralPartialEq for DbDiagnostics
Auto Trait Implementations§
impl Freeze for DbDiagnostics
impl RefUnwindSafe for DbDiagnostics
impl Send for DbDiagnostics
impl Sync for DbDiagnostics
impl Unpin for DbDiagnostics
impl UnsafeUnpin for DbDiagnostics
impl UnwindSafe for DbDiagnostics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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