pub struct ContextStats {
pub nodes_visited: usize,
pub nodes_included: usize,
pub nodes_excluded_by_filter: usize,
pub budget_used: usize,
pub budget_total: usize,
pub elapsed_ms: u64,
}Expand description
Traversal statistics for observability. [GOAL-4.13]
Fields§
§nodes_visited: usizeTotal nodes visited during traversal.
nodes_included: usizeNodes included in the final output.
nodes_excluded_by_filter: usizeNodes excluded by –include filter.
budget_used: usizeTokens used in the assembled context.
budget_total: usizeTotal token budget available.
elapsed_ms: u64Elapsed time in milliseconds.
Trait Implementations§
Source§impl Clone for ContextStats
impl Clone for ContextStats
Source§fn clone(&self) -> ContextStats
fn clone(&self) -> ContextStats
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextStats
impl Debug for ContextStats
Source§impl Default for ContextStats
impl Default for ContextStats
Source§fn default() -> ContextStats
fn default() -> ContextStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextStats
impl RefUnwindSafe for ContextStats
impl Send for ContextStats
impl Sync for ContextStats
impl Unpin for ContextStats
impl UnsafeUnpin for ContextStats
impl UnwindSafe for ContextStats
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