File size: 496 Bytes
b98ffbb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
use dora_node_api::{DoraNode, Event};
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
let (mut node, mut events) = DoraNode::init_from_env()?;
while let Some(event) = events.recv() {
match event {
Event::Input {
id,
metadata,
data: _,
} => match id.as_str() {
other => eprintln!("Received input `{other}`"),
},
_ => {}
}
}
Ok(())
}
|