use interface::{Data, Read, UniqueIdentifier, Update, UID}; use tracing::info; #[derive(UID)] #[uid(port = 5001)] pub enum Sin {} #[derive(UID)] #[uid(port = 5002)] pub enum ISin {} #[derive(UID)] #[uid(port = 5003)] pub enum Blah {} #[derive(Debug)] pub struct Print; impl Update for Print {} impl>> Read for Print { fn read(&mut self, data: Data) { info!("{}: {:.3?}", std::any::type_name::(), Vec::from(data)); } }