pub struct DbDiagnostics {Show 18 fields
pub build: BuildIdentity,
pub process: ProcessIdentity,
pub db_path: Option<String>,
pub wal_file: Option<WalFileState>,
pub checkpoint_counters: CheckpointCounters,
pub checkpoint_probe: Option<CheckpointProbe>,
pub checkpoint_probe_error: Option<String>,
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,
}Expand description
The full database-integrity, reader/writer-contention, and WAL/checkpoint payload.
Fields§
§build: BuildIdentity§process: ProcessIdentity§db_path: Option<String>None for an in-memory backend — the file-backed sections then carry
their own unavailability reasons.
wal_file: Option<WalFileState>§checkpoint_counters: CheckpointCounters§checkpoint_probe: Option<CheckpointProbe>§checkpoint_probe_error: Option<String>§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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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