aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/src/io.rs
blob: 3032c26981904b5cc9cdbe7dc6de4cdd14b7e782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! A module that adapts the ratman layer to RstNode

use netmod_mem::MemMod;

/// A pair of exits, connected
pub struct Io {
    a: MemMod,
    b: MemMod,
}

impl Io {
    fn new() -> Self {
        Self::default()
    }
}

impl Default for Io {
    fn default() -> Self {
        let (a, b) = MemMod::make_pair();
        Self { a, b }
    }
}