Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryleung-solana committed Jul 19, 2024
1 parent 5776e94 commit 074403e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quinn/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,21 @@ impl Endpoint {
}
}

/// Struct for holding the stats returned from Endpoint::stats
/// Statistics on [Endpoint] activity
#[non_exhaustive]
#[derive(Debug, Default, Copy, Clone)]
pub struct EndpointStats {
/// Number of open connecctions on this [Endpoint]
pub open_connections: u64,
/// Cummulative number of Quic handshakes accepted by this [Endpoint]
pub accepted_handshakes: u64,
/// Cummulative number of Quic handshakees sent from this [Endpoint]
pub outgoing_handshakes: u64,
/// Cummulative number of Quic handshakes refused on this [Endpoint]
pub refused_handshakes: u64,
/// Cummulative number of Quic handshakes ignored on this [Endpoint]
pub ignored_handshakes: u64,
/// Number of bytes used in all incoming buffers on this [Endpoint]
pub incoming_buffer_bytes: u64,
}

Expand Down

0 comments on commit 074403e

Please sign in to comment.