pub struct LiveQuery {
    pub query: Box,
    pub collection_name: Box,
    pub subscription: Option<Box<Subscription>>,
    pub id: i64,
    /* private fields */
}
Expand description

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.

Fields

query: Boxcollection_name: Boxsubscription: Option<Box<Subscription>>id: i64

Implementations

Trait Implementations

Executes the destructor for this type. Read more
Stop the observer so that it no longer receive updates

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts to T by calling Into<T>::into.
Tries to convert to T by calling TryInto<T>::try_into.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.