2019-01-30 15:26:05 +00:00
|
|
|
|
|
|
|
use crate::message::Message;
|
|
|
|
|
2019-01-30 22:11:51 +00:00
|
|
|
pub use std::sync::mpsc;
|
|
|
|
|
2019-01-30 15:26:05 +00:00
|
|
|
pub trait Monitor {
|
2019-01-30 22:11:51 +00:00
|
|
|
fn new() -> Self where Self: Sized;
|
|
|
|
fn run(&self, sender: &mpsc::Sender<Message>);
|
2019-01-30 15:26:05 +00:00
|
|
|
}
|