pub trait Consumer:
Send
+ Sync
+ 'static {
// Required methods
fn boxed(self) -> Result<Box<dyn Consumer>, Error>;
fn consume(&mut self, channel: Receiver);
}
pub trait Consumer:
Send
+ Sync
+ 'static {
// Required methods
fn boxed(self) -> Result<Box<dyn Consumer>, Error>;
fn consume(&mut self, channel: Receiver);
}