pub struct RequestRateSnapshot {
pub tokens_emitted: u64,
pub tokens_per_second: f64,
pub tbt_p50_seconds: f64,
pub tbt_p95_seconds: f64,
pub queue_wait_seconds: Option<f64>,
pub elapsed_seconds: f64,
}Expand description
Snapshot of a single request’s rate metrics at one point in time.
Fields§
§tokens_emitted: u64Number of tokens emitted so far.
tokens_per_second: f64EMA-smoothed tokens per second.
tbt_p50_seconds: f64Median (p50) inter-token latency in seconds.
tbt_p95_seconds: f6495th-percentile inter-token latency in seconds.
queue_wait_seconds: Option<f64>Queue wait time (admission → first token) in seconds, or None
if no token has been emitted yet.
elapsed_seconds: f64Total time elapsed since admission, in seconds.
Trait Implementations§
Source§impl Clone for RequestRateSnapshot
impl Clone for RequestRateSnapshot
Source§fn clone(&self) -> RequestRateSnapshot
fn clone(&self) -> RequestRateSnapshot
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 RequestRateSnapshot
impl Debug for RequestRateSnapshot
Source§impl PartialEq for RequestRateSnapshot
impl PartialEq for RequestRateSnapshot
Source§fn eq(&self, other: &RequestRateSnapshot) -> bool
fn eq(&self, other: &RequestRateSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RequestRateSnapshot
impl StructuralPartialEq for RequestRateSnapshot
Auto Trait Implementations§
impl Freeze for RequestRateSnapshot
impl RefUnwindSafe for RequestRateSnapshot
impl Send for RequestRateSnapshot
impl Sync for RequestRateSnapshot
impl Unpin for RequestRateSnapshot
impl UnsafeUnpin for RequestRateSnapshot
impl UnwindSafe for RequestRateSnapshot
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<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