Skip to main content

Observer

Type Alias Observer 

Source
pub type Observer<E> = Box<dyn for<'a> Fn(&'a E) -> BoxFuture<'a, ()> + Send + Sync>;
Expand description

Observer for event E: invoked by both emit and parallel.

Aliased Typeยง

pub struct Observer<E>(/* private fields */);