dittolive_ditto::store

Trait ChangeHandlerWithSignalNext

Source
pub trait ChangeHandlerWithSignalNext
where Self: FnMut(QueryResult, Box<dyn SignalNext>) + 'static + Send + Sync,
{ }
Expand description

An alias for FnMut(QueryResult, Box<dyn SignalNext>) + 'static + Send + Sync. A change handler is called whenever an active store observer receives new results.

Call the provided SignalNext function to signal that the handler is ready to receive the next callback from the store observer.

Implementors§

Source§

impl<__: ?Sized> ChangeHandlerWithSignalNext for __
where Self: FnMut(QueryResult, Box<dyn SignalNext>) + 'static + Send + Sync,