pub struct TimingEvent {
pub turn: u32,
pub stage: TimingStage,
pub since_turn_start_ms: u64,
pub since_llm_request_start_ms: Option<u64>,
pub duration_ms: Option<u64>,
pub label: Option<String>,
pub success: Option<bool>,
}Fields§
§turn: u32§stage: TimingStage§since_turn_start_ms: u64§since_llm_request_start_ms: Option<u64>§duration_ms: Option<u64>§label: Option<String>§success: Option<bool>Implementations§
Source§impl TimingEvent
impl TimingEvent
pub fn new( turn: u32, stage: TimingStage, turn_started_at: Instant, llm_request_started_at: Option<Instant>, ) -> Self
pub fn with_duration_ms(self, duration_ms: u64) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_success(self, success: bool) -> Self
Trait Implementations§
Source§impl Clone for TimingEvent
impl Clone for TimingEvent
Source§fn clone(&self) -> TimingEvent
fn clone(&self) -> TimingEvent
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 TimingEvent
impl Debug for TimingEvent
Source§impl PartialEq for TimingEvent
impl PartialEq for TimingEvent
Source§fn eq(&self, other: &TimingEvent) -> bool
fn eq(&self, other: &TimingEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TimingEvent
impl StructuralPartialEq for TimingEvent
Auto Trait Implementations§
impl Freeze for TimingEvent
impl RefUnwindSafe for TimingEvent
impl Send for TimingEvent
impl Sync for TimingEvent
impl Unpin for TimingEvent
impl UnsafeUnpin for TimingEvent
impl UnwindSafe for TimingEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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