Structs

  • The type that is returned when calling observe_local on a PendingCursorOperation object. It handles the logic for calling the EventHandler 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 at
  • Provides 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 event
  • 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_local(...))