pub struct RetryStats {
pub total_llm_calls: usize,
pub retried_calls: usize,
pub extra_attempts: usize,
pub retry_rate: f64,
}Expand description
Retry statistics across LLM spans.
Fields§
§total_llm_calls: usize§retried_calls: usizeCalls with attempt > 1 (Claude Code) or comparable retry markers.
extra_attempts: usizeSum of (attempt - 1) across all calls — total extra attempts.
retry_rate: f64Fraction in the range 0.0..1.0.
Trait Implementations§
Source§impl Clone for RetryStats
impl Clone for RetryStats
Source§fn clone(&self) -> RetryStats
fn clone(&self) -> RetryStats
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 RetryStats
impl Debug for RetryStats
Source§impl<'de> Deserialize<'de> for RetryStats
impl<'de> Deserialize<'de> for RetryStats
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
Auto Trait Implementations§
impl Freeze for RetryStats
impl RefUnwindSafe for RetryStats
impl Send for RetryStats
impl Sync for RetryStats
impl Unpin for RetryStats
impl UnsafeUnpin for RetryStats
impl UnwindSafe for RetryStats
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