pub struct RequestLedgerSnapshot {Show 19 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,
pub orphaned_handlers: u64,
pub oldest_orphaned_handler: Option<OrphanedHandler>,
}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: DetachedObservationStats§orphaned_handlers: u64#2279: handler threads still running after their request stopped waiting for them (watchdog fired, or the request was dropped). Such a thread holds a blocking-pool slot that no pending request shows.
oldest_orphaned_handler: Option<OrphanedHandler>The longest-orphaned of those threads.
Implementations§
Source§impl RequestLedgerSnapshot
impl RequestLedgerSnapshot
Sourcepub fn with_ages(self, now_ms: u64) -> RequestLedgerSnapshot
pub fn with_ages(self, now_ms: u64) -> RequestLedgerSnapshot
Fill the age_ms fields relative to now_ms.
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§fn clone(&self) -> RequestLedgerSnapshot
fn clone(&self) -> RequestLedgerSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<RequestLedgerSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestLedgerSnapshot, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 RequestLedgerSnapshotwhere
RawVecInner: Send,
impl Sync for RequestLedgerSnapshotwhere
RawVecInner: Sync,
impl Unpin for RequestLedgerSnapshot
impl UnsafeUnpin for RequestLedgerSnapshot
impl UnwindSafe for RequestLedgerSnapshotwhere
RawVecInner: UnwindSafe,
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>,
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