acme-core 0.4.0

the core modules for the acme platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
    Appellation: handle <module>
    Contrib: @FL03
*/
use crate::events::RawEvent;
use crate::traits::RawContext;

pub trait Handler<E>
where
    E: RawEvent,
{
    type Ctx: RawContext;

    fn handle(&self, ctx: &mut Self::Ctx, event: &E) -> Result<(), crate::Error>;
}