microunit/node/
unit.rs

1use crate::proto::UnitDesc;
2
3pub trait Unit: Send {
4    fn kind(&self) -> String;
5    fn spawn(&self, uuid: String) -> Box<dyn UnitHandle>;
6}
7
8pub trait UnitHandle: Send {
9    fn desc(&self) -> UnitDesc;
10}