use lossyq::spsc::{Sender, Receiver};
use super::super::common::{Task, Message, IdentifiedReceiver};
use super::super::elem::filter::Filter;
use super::super::common::Schedule;
use super::executor::TaskResults;
pub struct OnMsg {
}
impl Filter for OnMsg {
type InputType = TaskResults;
type OutputType = Box<Task + Send>;
fn process(
&mut self,
_input: &mut Option<IdentifiedReceiver<Self::InputType>>,
_output: &mut Sender<Message<Self::OutputType>>) -> Schedule {
Schedule::Loop
}
}
pub fn new() -> OnMsg {
OnMsg {
}
}