sycamore::web::events

Trait EventHandler

pub trait EventHandler<E, R = ()>: 'static
where E: EventDescriptor,
{ // Required method fn call(&mut self, event: <E as EventDescriptor>::EventTy); }

Required Methods§

fn call(&mut self, event: <E as EventDescriptor>::EventTy)

Implementors§

§

impl<E, F> EventHandler<E> for F
where E: EventDescriptor, F: FnMut(<E as EventDescriptor>::EventTy) + 'static,