netmod-mem 0.4.0

A fully in-memory implementation of a netmod endpoint
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ratman_netmod::Frame;
/// A `Frame` tagged with an identifier and a time to live, for propagation through
/// a simulated medium.
pub(crate) struct TaggedFrame {
    pub tag: u32,
    pub ttl: u32,
    pub frame: Frame,
}

impl TaggedFrame {
    pub(crate) fn new(tag: u32, ttl: u32, frame: Frame) -> Self {
        Self { tag, ttl, frame }
    }
}