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