pub struct StreamingMetrics {
pub request_start_time: Option<Instant>,
pub first_chunk_time: Option<Instant>,
pub total_chunks: usize,
pub total_bytes: usize,
pub total_requests: usize,
pub total_response_time: Duration,
pub error_count: usize,
pub retry_count: usize,
}
Expand description
Streaming metrics for monitoring and debugging
Fields§
§request_start_time: Option<Instant>
§first_chunk_time: Option<Instant>
§total_chunks: usize
§total_bytes: usize
§total_requests: usize
§total_response_time: Duration
§error_count: usize
§retry_count: usize
Trait Implementations§
Source§impl Clone for StreamingMetrics
impl Clone for StreamingMetrics
Source§fn clone(&self) -> StreamingMetrics
fn clone(&self) -> StreamingMetrics
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 moreSource§impl Debug for StreamingMetrics
impl Debug for StreamingMetrics
Source§impl Default for StreamingMetrics
impl Default for StreamingMetrics
Source§fn default() -> StreamingMetrics
fn default() -> StreamingMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingMetrics
impl RefUnwindSafe for StreamingMetrics
impl Send for StreamingMetrics
impl Sync for StreamingMetrics
impl Unpin for StreamingMetrics
impl UnwindSafe for StreamingMetrics
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