pub struct ConnectionMetricsSummary {
pub uptime_ms: Option<u64>,
pub connect: OperationMetrics,
pub disconnect: OperationMetrics,
pub reads: OperationMetrics,
pub writes: OperationMetrics,
pub reconnects: OperationMetrics,
pub bytes_read: u64,
pub bytes_written: u64,
}Expand description
Serializable summary of connection metrics.
Fields§
§uptime_ms: Option<u64>Connection uptime in milliseconds.
connect: OperationMetricsConnection attempt metrics.
disconnect: OperationMetricsDisconnect metrics.
reads: OperationMetricsRead operation metrics.
writes: OperationMetricsWrite operation metrics.
reconnects: OperationMetricsReconnection metrics.
bytes_read: u64Total bytes read.
bytes_written: u64Total bytes written.
Trait Implementations§
Source§impl Clone for ConnectionMetricsSummary
impl Clone for ConnectionMetricsSummary
Source§fn clone(&self) -> ConnectionMetricsSummary
fn clone(&self) -> ConnectionMetricsSummary
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 ConnectionMetricsSummary
impl Debug for ConnectionMetricsSummary
Source§impl<'de> Deserialize<'de> for ConnectionMetricsSummary
impl<'de> Deserialize<'de> for ConnectionMetricsSummary
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
Auto Trait Implementations§
impl Freeze for ConnectionMetricsSummary
impl RefUnwindSafe for ConnectionMetricsSummary
impl Send for ConnectionMetricsSummary
impl Sync for ConnectionMetricsSummary
impl Unpin for ConnectionMetricsSummary
impl UnwindSafe for ConnectionMetricsSummary
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