datex_core/network/com_interface.rs
1pub trait ComInterface {
2
3 const NAME: &'static str;
4 const IN: bool; // can receive data
5 const OUT: bool; // can send data
6 const GLOBAL: bool; // has a connection to the global network, might be preferred as a default interface
7 const VIRTUAL: bool; // only a relayed connection, don't use for DATEX rooting
8
9 fn send_block(&mut self, block: &[u8]) -> ();
10
11
12}