pub trait SystemWork:
Sync
+ Send
+ 'static {
type Data;
// Required methods
fn init(&self, index: usize) -> Self::Data;
fn work(&self, data: &mut Self::Data) -> Decision;
// Provided method
fn close(&self, _: Self::Data) { ... }
}Expand description
A subset of System that can perform work, but my not provide scale. Should
be implemented by the user or created by functions such as func_worker.