1
2
3
4
5
use relay::Relay;

pub trait Event<Context: Send> {
    fn process(self: Box<Self>, relay: &Relay<Context>, ctx: &mut Context);
}