pub struct ConnectionStatistics { /* private fields */ }Implementations§
Source§impl ConnectionStatistics
impl ConnectionStatistics
Sourcepub fn call_count(&self) -> u32
pub fn call_count(&self) -> u32
Returns the number of roundtrips to the database that were done through this connection since the last reset.
Sourcepub fn accumulated_wait_time(&self) -> Duration
pub fn accumulated_wait_time(&self) -> Duration
Returns the total wait time, from start of serializing a request until receiving a reply, for all roundtrips to the database that were done through this connection since the last reset.
Sourcepub fn compressed_requests_count(&self) -> u32
pub fn compressed_requests_count(&self) -> u32
Returns the number of outgoing requests that were compressed.
Sourcepub fn compressed_requests_compressed_size(&self) -> u64
pub fn compressed_requests_compressed_size(&self) -> u64
Returns the accumulated size of compressed requests (without message and segment header).
Sourcepub fn compressed_requests_uncompressed_size(&self) -> u64
pub fn compressed_requests_uncompressed_size(&self) -> u64
Returns the accumulated uncompressed size (without message and segment header) of compressed requests.
Sourcepub fn compressed_replies_count(&self) -> u32
pub fn compressed_replies_count(&self) -> u32
Returns the number of incoming replies that were compressed.
Sourcepub fn compressed_replies_compressed_size(&self) -> u64
pub fn compressed_replies_compressed_size(&self) -> u64
Returns the accumulated size of compressed replies (without message and segment header).
Sourcepub fn compressed_replies_uncompressed_size(&self) -> u64
pub fn compressed_replies_uncompressed_size(&self) -> u64
Returns the accumulated uncompressed size (without message and segment header) of compressed replies.
Trait Implementations§
Source§impl Clone for ConnectionStatistics
impl Clone for ConnectionStatistics
Source§fn clone(&self) -> ConnectionStatistics
fn clone(&self) -> ConnectionStatistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more