pub struct RequestLedgerSnapshot {Show 17 fields
pub pid: u32,
pub kind: String,
pub generation: String,
pub started_at_ms: u64,
pub snapshot_at_ms: u64,
pub admitted: u64,
pub completed: u64,
pub errored: u64,
pub refused: u64,
pub abandoned: u64,
pub pending: u64,
pub untracked_pending: u64,
pub oldest_pending: Option<PendingRequest>,
pub last_tool_completion: Option<CompletionRecord>,
pub last_initialize: Option<CompletionRecord>,
pub current_phase: Option<PhaseRecord>,
pub observations: DetachedObservationStats,
}Expand description
One point-in-time view of the ledger. None fields are unknown or did not
happen yet; renderers spell them out instead of guessing.
Fields§
§pid: u32§kind: Stringmcp-stdio, http or daemon.
generation: StringThe process’s producer identity, distinct per start.
started_at_ms: u64§snapshot_at_ms: u64§admitted: u64§completed: u64§errored: u64§refused: u64§abandoned: u64§pending: u64§untracked_pending: u64Pending requests beyond the tracked bound (their stage is unknown).
oldest_pending: Option<PendingRequest>§last_tool_completion: Option<CompletionRecord>§last_initialize: Option<CompletionRecord>§current_phase: Option<PhaseRecord>§observations: DetachedObservationStatsImplementations§
Source§impl RequestLedgerSnapshot
impl RequestLedgerSnapshot
Sourcepub fn oldest_pending_age(&self, now_ms: u64) -> Option<Duration>
pub fn oldest_pending_age(&self, now_ms: u64) -> Option<Duration>
Age of the oldest pending request at now_ms, if one is tracked.
Trait Implementations§
Source§impl Clone for RequestLedgerSnapshot
impl Clone for RequestLedgerSnapshot
Source§impl Debug for RequestLedgerSnapshot
impl Debug for RequestLedgerSnapshot
Source§impl<'de> Deserialize<'de> for RequestLedgerSnapshot
impl<'de> Deserialize<'de> for RequestLedgerSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RequestLedgerSnapshot
impl PartialEq for RequestLedgerSnapshot
Source§impl Serialize for RequestLedgerSnapshot
impl Serialize for RequestLedgerSnapshot
impl StructuralPartialEq for RequestLedgerSnapshot
Auto Trait Implementations§
impl Forget for RequestLedgerSnapshot
impl Freeze for RequestLedgerSnapshot
impl Move for RequestLedgerSnapshot
impl RefUnwindSafe for RequestLedgerSnapshot
impl Send for RequestLedgerSnapshot
impl Sync for RequestLedgerSnapshot
impl Unpin for RequestLedgerSnapshot
impl UnsafeUnpin for RequestLedgerSnapshot
impl UnwindSafe for RequestLedgerSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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