pub struct ServerMetricsSnapshot {
pub total_requests: u64,
pub total_errors: u64,
pub uptime: Duration,
pub last_restart: SystemTime,
}
Expand description
Server metrics snapshot
Fields§
§total_requests: u64
§total_errors: u64
§uptime: Duration
§last_restart: SystemTime
Trait Implementations§
Source§impl Clone for ServerMetricsSnapshot
impl Clone for ServerMetricsSnapshot
Source§fn clone(&self) -> ServerMetricsSnapshot
fn clone(&self) -> ServerMetricsSnapshot
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 ServerMetricsSnapshot
impl Debug for ServerMetricsSnapshot
Source§impl<'de> Deserialize<'de> for ServerMetricsSnapshot
impl<'de> Deserialize<'de> for ServerMetricsSnapshot
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 ServerMetricsSnapshot
impl RefUnwindSafe for ServerMetricsSnapshot
impl Send for ServerMetricsSnapshot
impl Sync for ServerMetricsSnapshot
impl Unpin for ServerMetricsSnapshot
impl UnwindSafe for ServerMetricsSnapshot
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