Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<E>
where E: RawEvent,
{ type Ctx: RawContext; // Required method fn handle(&self, ctx: &mut Self::Ctx, event: &E) -> Result<(), Error>; }

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§