pub struct MetricsSnapshot {
pub bytes_sent: u64,
pub bytes_received: u64,
pub commands_executed: u64,
pub pattern_matches: u64,
pub timeouts: u64,
pub errors: u64,
pub active_sessions: u64,
}Expand description
Snapshot of metrics.
Fields§
§bytes_sent: u64Bytes sent.
bytes_received: u64Bytes received.
commands_executed: u64Commands executed.
pattern_matches: u64Pattern matches.
timeouts: u64Timeouts.
errors: u64Errors.
active_sessions: u64Active sessions.
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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