You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
346 B
23 lines
346 B
4 years ago
|
//! 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 }
|
||
|
}
|
||
|
}
|