pub trait Worker<C: CbArgs>: Send + 'static {
// Required method
fn done(&self, event: Box<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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".