dittolive_ditto::store::query_builder

Trait EventHandler

Source
pub trait EventHandler
where Self: FnMut(Vec<BoxedDocument>, LiveQueryEvent) + Send + 'static,
{ }
Expand description

An alias for FnMut(Vec<BoxedDocument>, LiveQueryEvent) + Send + 'static. A closure which is called on each event

Implementors§

Source§

impl<__: ?Sized> EventHandler for __
where Self: FnMut(Vec<BoxedDocument>, LiveQueryEvent) + Send + 'static,