pub struct Stats {
pub clients: u64,
pub connections: u64,
pub commands: u64,
}Expand description
The numbers INFO reports that this layer cannot see for itself.
The reactor owns the sockets, so the reactor is what knows how many clients there are. It writes these directly and nothing here does anything with them except report them.
Fields§
§clients: u64Connections open right now.
connections: u64Connections accepted since the server started.
commands: u64Commands run since the server started, which this layer counts itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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