pub struct SessionMetrics {
pub total_objects_sent: u64,
pub total_objects_received: u64,
pub total_bytes_sent: u64,
pub total_bytes_received: u64,
pub control_messages_sent: u64,
pub control_messages_received: u64,
pub session_duration_us: u64,
pub error_count: u64,
}Expand description
Aggregated metrics computed from a sequence of trace events.
Fields§
§total_objects_sent: u64§total_objects_received: u64§total_bytes_sent: u64§total_bytes_received: u64§control_messages_sent: u64§control_messages_received: u64§session_duration_us: u64§error_count: u64Implementations§
Source§impl SessionMetrics
impl SessionMetrics
Sourcepub fn compute(events: &[TraceEvent]) -> Self
pub fn compute(events: &[TraceEvent]) -> Self
Compute metrics from a slice of trace events.
Trait Implementations§
Source§impl Clone for SessionMetrics
impl Clone for SessionMetrics
Source§fn clone(&self) -> SessionMetrics
fn clone(&self) -> SessionMetrics
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 SessionMetrics
impl Debug for SessionMetrics
Source§impl Default for SessionMetrics
impl Default for SessionMetrics
Source§fn default() -> SessionMetrics
fn default() -> SessionMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionMetrics
impl PartialEq for SessionMetrics
impl StructuralPartialEq for SessionMetrics
Auto Trait Implementations§
impl Freeze for SessionMetrics
impl RefUnwindSafe for SessionMetrics
impl Send for SessionMetrics
impl Sync for SessionMetrics
impl Unpin for SessionMetrics
impl UnsafeUnpin for SessionMetrics
impl UnwindSafe for SessionMetrics
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