pub struct ServerStats {
pub challenges: u64,
pub accepted: u64,
pub denied: u64,
pub bad: u64,
pub throttled: u64,
pub kept: u64,
pub unknown: u64,
}Expand description
what the server counted beyond its connections
Fields§
§challenges: u64CHALLENGE answers sent
accepted: u64connections taken
denied: u64clients refused (full, protocol, address)
bad: u64packets that were no packet, a wrong kind, a wrong cookie or token, or a handshake with a key that gives no shared secret (forged DATA of a connection: its Stats::forged)
throttled: u64handshakes over challenges_per_s, left without an answer
kept: u64RESPONSEs with another nonce or key from an address whose connection is still alive, left without an answer (a client that starts again gets in once its old connection was quiet for a second; someone on the path who saw a CHALLENGE ended the connection before)
unknown: u64DATA from addresses without a connection
Trait Implementations§
Source§impl Clone for ServerStats
impl Clone for ServerStats
impl Copy for ServerStats
Source§impl Debug for ServerStats
impl Debug for ServerStats
Source§impl Default for ServerStats
impl Default for ServerStats
impl Eq for ServerStats
Source§impl PartialEq for ServerStats
impl PartialEq for ServerStats
impl StructuralPartialEq for ServerStats
Auto Trait Implementations§
impl Forget for ServerStats
impl Freeze for ServerStats
impl Move for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin for ServerStats
impl UnsafeUnpin for ServerStats
impl UnwindSafe for ServerStats
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