protolens 0.2.1

TCP stream reassembly,application layer protocol parsing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(crate) struct Stats {
    pub(crate) packet_count: usize,
}

impl Stats {
    pub(crate) fn new() -> Self {
        Stats { packet_count: 0 }
    }
}

impl Default for Stats {
    fn default() -> Self {
        Self::new()
    }
}