pub trait SingleDocumentEventHandler where
Self: FnMut(Option<BoxedDocument>, SingleDocumentLiveQueryEvent) + Send + 'static, { }
Expand description
An alias for FnMut(Option < BoxedDocument >, SingleDocumentLiveQueryEvent) + Send + 'static
.
A closure which is called on each event for a single document live query
(find_by_id(...).observe(...)
)