pub struct AttemptTrace {
pub attempt: AttemptNumber,
pub kind: Option<ModelInvokeErrorKind>,
pub is_retryable: bool,
pub duration_ms: u64,
}Expand description
One model attempt inside a round — an entry of the retry ledger.
Fields§
§attempt: AttemptNumber1-based attempt number within the round’s invocation.
kind: Option<ModelInvokeErrorKind>None = successful attempt; Some(kind) = the failure classification.
is_retryable: boolWhether the failure was classified retryable (it may still not have
been retried once RetryPolicy::max_retries was spent).
duration_ms: u64Wall-clock duration of the attempt, in milliseconds.
Trait Implementations§
Source§impl Clone for AttemptTrace
impl Clone for AttemptTrace
Source§fn clone(&self) -> AttemptTrace
fn clone(&self) -> AttemptTrace
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 AttemptTrace
impl Debug for AttemptTrace
Source§impl<'de> Deserialize<'de> for AttemptTrace
impl<'de> Deserialize<'de> for AttemptTrace
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 AttemptTrace
impl RefUnwindSafe for AttemptTrace
impl Send for AttemptTrace
impl Sync for AttemptTrace
impl Unpin for AttemptTrace
impl UnsafeUnpin for AttemptTrace
impl UnwindSafe for AttemptTrace
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