pub struct WireTurn {
pub running: bool,
pub inferring: bool,
pub elapsed_ms: u64,
pub ttft_secs: Option<f64>,
pub tok_per_sec: f64,
pub out_tokens: usize,
pub started_unix: Option<i64>,
}Expand description
A snapshot of one pane’s turn clock. Not the agent’s live TurnStats
(which holds Instant/SystemTime — not serde, not WASM), but the derived
numbers the frontend needs.
Fields§
§running: bool§inferring: bool§elapsed_ms: u64TurnStats::infer_elapsed().as_millis().
ttft_secs: Option<f64>Time-to-first-token in seconds.
tok_per_sec: f64Streamed tokens per second of model working time.
out_tokens: usize§started_unix: Option<i64>Unix seconds — from TurnStats::started_at when present.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireTurn
impl<'de> Deserialize<'de> for WireTurn
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
impl StructuralPartialEq for WireTurn
Auto Trait Implementations§
impl Freeze for WireTurn
impl RefUnwindSafe for WireTurn
impl Send for WireTurn
impl Sync for WireTurn
impl Unpin for WireTurn
impl UnsafeUnpin for WireTurn
impl UnwindSafe for WireTurn
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