pub struct ConnectionMetrics {
pub active_connections: u32,
pub total_connections: u64,
pub failed_connections: u64,
pub connection_uptime_avg: Duration,
pub last_connection_time: Option<SystemTime>,
}Fields§
§active_connections: u32§total_connections: u64§failed_connections: u64§connection_uptime_avg: Duration§last_connection_time: Option<SystemTime>Trait Implementations§
Source§impl Clone for ConnectionMetrics
impl Clone for ConnectionMetrics
Source§fn clone(&self) -> ConnectionMetrics
fn clone(&self) -> ConnectionMetrics
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 ConnectionMetrics
impl Debug for ConnectionMetrics
Source§impl<'de> Deserialize<'de> for ConnectionMetrics
impl<'de> Deserialize<'de> for ConnectionMetrics
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 ConnectionMetrics
impl RefUnwindSafe for ConnectionMetrics
impl Send for ConnectionMetrics
impl Sync for ConnectionMetrics
impl Unpin for ConnectionMetrics
impl UnwindSafe for ConnectionMetrics
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