ChangeHandlerWithSignalNext

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. See SignalNext for how this mechanism handles backpressure and collapses pending updates into at most one callback while delivery is paused.

Implementors§

Source§

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