Module dittolive_ditto::store::live_query
source · [−]Structs
The type that is returned when calling when calling
observe_local
on a
DittoPendingCursorOperation
object. It handles the logic for calling the event handler that is
provided to observe_local
calls. LiveQuery
objects must be kept in scope for as long as you
wish to have your event handler be called when there is an update to a document matching the
query you provide.Describes the index in a list of documents that a document was
previously found at (
from
) and the index that it can now be found atProvides information about a live query event relating to a single document live query.
Enums
Describes the different types of event that you can receive when dealing with live queries.
Traits
An alias for
FnMut(Vec < BoxedDocument >, LiveQueryEvent) + Send + 'static
.
A closure which is called on each eventAn 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_local(...)
)