pub struct Metrics {
pub current_client_connections: u32,
pub historic_client_connections: u64,
pub client_bytes_sent: u64,
pub client_bytes_received: u64,
pub current_sandstorm_connections: u32,
pub historic_sandstorm_connections: u64,
}Expand description
A snapshot of metrics measured by the server about incoming connections, bytes sent, etc.
Fields§
§current_client_connections: u32The amount of currently connected client connections.
historic_client_connections: u64The total amount of incoming client connections received by the server since startup.
client_bytes_sent: u64The total amount of bytes sent by clients to remote destinations.
client_bytes_received: u64The total amount of bytes received by clients from remote destinations.
current_sandstorm_connections: u32The amount of currently connected Sandstorm connections.
historic_sandstorm_connections: u64The total amount of incoming Sandstorm connections received by the server since startup.
Trait Implementations§
impl Copy for Metrics
impl Eq for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
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