msg-socket 0.1.6

Sockets for msg-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt::Debug;

use derive_more::Deref;

/// Statistics for a socket.
#[derive(Debug, Deref)]
pub struct SocketStats<S> {
    /// Socket-specific stats.
    pub(crate) specific: S,
}

impl<S: Default> Default for SocketStats<S> {
    fn default() -> Self {
        Self { specific: S::default() }
    }
}