pub struct Stats {
pub connections: u64,
pub rooms: u64,
pub messages_in: u64,
pub messages_out: u64,
pub bytes_in: u64,
pub bytes_out: u64,
pub drops: u64,
pub per_room: BTreeMap<String, RoomStats>,
}Expand description
Point-in-time snapshot of global and per-room counters.
Produced by StatsRecorder::snapshot; deltas between two snapshots
give rates.
Fields§
§connections: u64Live connection count (accept minus close).
rooms: u64Live room count.
messages_in: u64Global messages recorded inbound (includes all room traffic).
messages_out: u64Global messages fanned outbound (includes all room traffic).
bytes_in: u64Global inbound payload bytes.
bytes_out: u64Global outbound payload bytes.
drops: u64Global drops: broadcasts with no live receiver (backpressure loss).
per_room: BTreeMap<String, RoomStats>Per-room counters, keyed by room id (sorted for stable output).
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
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