Creating an Io channel abstraction

wip/yesman
Katharina Fey 4 years ago
parent e458ac4c52
commit 389b481607
Signed by: kookie
GPG Key ID: F972AEEA2887D547
  1. 22
      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 }
}
}
Loading…
Cancel
Save