Skip to main content

msg_socket/
stats.rs

1use std::fmt::Debug;
2
3use derive_more::Deref;
4
5/// Statistics for a socket.
6#[derive(Debug, Deref)]
7pub struct SocketStats<S> {
8    /// Socket-specific stats.
9    pub(crate) specific: S,
10}
11
12impl<S: Default> Default for SocketStats<S> {
13    fn default() -> Self {
14        Self { specific: S::default() }
15    }
16}