acme_core/traits/
handle.rs

1/*
2    Appellation: handle <module>
3    Contrib: @FL03
4*/
5use crate::events::RawEvent;
6use crate::traits::RawContext;
7
8pub trait Handler<E>
9where
10    E: RawEvent,
11{
12    type Ctx: RawContext;
13
14    fn handle(&self, ctx: &mut Self::Ctx, event: &E) -> Result<(), crate::Error>;
15}