pub trait Worker<C: IOCallback>: Send + 'static {
// Required method
fn done(&self, event: IOEvent<C>);
}Expand description
A trait for workers that accept IO events.
This allows using either IOWorkers (wrappers around channels) or direct channels
(MTx, Tx) or any other sink, or even process inline.