1 2 3 4 5 6 7 8
use crate::structure::xflow::*; use crate::runtime::xfstate::XFState; pub trait Dispatchable { fn init(&mut self) -> Result<(), ()>; fn dispatch(&self, node: &XFlowNode, state: &mut XFState) -> Result<(), ()>; }