pub struct StatsSnapshot {Show 16 fields
pub uptime: Duration,
pub total_requests: u64,
pub successful_requests: u64,
pub failed_requests: u64,
pub cancelled_requests: u64,
pub tool_calls: u64,
pub resource_reads: u64,
pub prompt_gets: u64,
pub list_operations: u64,
pub avg_latency: Duration,
pub max_latency: Duration,
pub min_latency: Duration,
pub active_connections: usize,
pub total_connections: u64,
pub bytes_received: u64,
pub bytes_sent: u64,
}Expand description
Point-in-time snapshot of server statistics.
Fields§
§uptime: Duration§total_requests: u64§successful_requests: u64§failed_requests: u64§cancelled_requests: u64§tool_calls: u64§resource_reads: u64§prompt_gets: u64§list_operations: u64§avg_latency: Duration§max_latency: Duration§min_latency: Duration§active_connections: usize§total_connections: u64§bytes_received: u64§bytes_sent: u64Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).