pub struct RuntimeUsage { /* private fields */ }Expand description
Monotonic, output-only resource accounting for a runtime session.
Implementations§
Source§impl RuntimeUsage
impl RuntimeUsage
Sourcepub const fn total_requests(&self) -> u32
pub const fn total_requests(&self) -> u32
Returns logical transport dispatches that acquired an accounting lease.
Sourcepub const fn passive_requests(&self) -> u32
pub const fn passive_requests(&self) -> u32
Returns passive transport dispatches, including bootstrap, planned, adaptive, and retry origins.
Sourcepub const fn active_verifications(&self) -> u16
pub const fn active_verifications(&self) -> u16
Returns explicit active-verification transport dispatches.
Sourcepub const fn bootstrap_requests(&self) -> u32
pub const fn bootstrap_requests(&self) -> u32
Returns bootstrap-originated transport dispatches.
Sourcepub const fn planned_requests(&self) -> u32
pub const fn planned_requests(&self) -> u32
Returns planner-originated transport dispatches.
Sourcepub const fn adaptive_requests(&self) -> u32
pub const fn adaptive_requests(&self) -> u32
Returns adaptation-originated transport dispatches.
Sourcepub const fn retry_requests(&self) -> u32
pub const fn retry_requests(&self) -> u32
Returns retry-originated transport dispatches.
Sourcepub const fn request_body_bytes(&self) -> u64
pub const fn request_body_bytes(&self) -> u64
Returns cumulative request-body bytes charged before dispatch.
Bytes remain charged when transport or verification later fails.
Sourcepub const fn response_bytes(&self) -> u64
pub const fn response_bytes(&self) -> u64
Returns cumulative response-body bytes delivered to transport leases.
This can exceed the configured threshold by the single serialized chunk that revealed the crossing. The runtime reports that crossing as a typed limit and starts no later body read. Bytes remain charged when execution later fails or is cancelled.
Sourcepub const fn completed_execution_turns(&self) -> u32
pub const fn completed_execution_turns(&self) -> u32
Returns completed passive or active execution turns.
Sourcepub const fn consecutive_no_progress_turns(&self) -> u16
pub const fn consecutive_no_progress_turns(&self) -> u16
Returns the current consecutive no-progress count.
Sourcepub fn same_action_attempts(&self, action_id: &str) -> u16
pub fn same_action_attempts(&self, action_id: &str) -> u16
Returns attempts for one semantic action identity.
Sourcepub fn action_attempts(&self) -> &BTreeMap<String, u16>
pub fn action_attempts(&self) -> &BTreeMap<String, u16>
Returns all action attempt counters in stable action-ID order.
Sourcepub fn total_action_attempts(&self) -> u64
pub fn total_action_attempts(&self) -> u64
Returns all semantic action attempts without adding another wire field.
Sourcepub const fn elapsed_ms(&self) -> u64
pub const fn elapsed_ms(&self) -> u64
Returns elapsed runtime wall time in milliseconds.
Trait Implementations§
Source§impl Clone for RuntimeUsage
impl Clone for RuntimeUsage
Source§fn clone(&self) -> RuntimeUsage
fn clone(&self) -> RuntimeUsage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeUsage
impl Debug for RuntimeUsage
Source§impl Default for RuntimeUsage
impl Default for RuntimeUsage
Source§fn default() -> RuntimeUsage
fn default() -> RuntimeUsage
impl Eq for RuntimeUsage
Source§impl PartialEq for RuntimeUsage
impl PartialEq for RuntimeUsage
Source§impl Serialize for RuntimeUsage
impl Serialize for RuntimeUsage
impl StructuralPartialEq for RuntimeUsage
Auto Trait Implementations§
impl Freeze for RuntimeUsage
impl RefUnwindSafe for RuntimeUsage
impl Send for RuntimeUsage
impl Sync for RuntimeUsage
impl Unpin for RuntimeUsage
impl UnsafeUnpin for RuntimeUsage
impl UnwindSafe for RuntimeUsage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.