diff options
Diffstat (limited to 'src/io.rs')
-rw-r--r-- | src/io.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/io.rs b/src/io.rs new file mode 100644 index 000000000000..3032c2698190 --- /dev/null +++ b/src/io.rs @@ -0,0 +1,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 } + } +} |