pub struct LiveQuery {
    pub query: Box,
    pub collection_name: Box,
    pub subscription: Option<Box<Subscription>>,
    pub event_handler: Pin<Box<dyn EventHandler>>,
    pub id: i64,
    /* private fields */
}

Fields

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

If created via observe contains the associated Subscription for the LiveQuery

event_handler: Pin<Box<dyn EventHandler>>

An OWNED event handler, which is borrowed on the other side of the FFI. As such, retain and release methods for the handler can be None.

id: i64

Implementations

Trait Implementations

Executes the destructor for this type. Read more

Stop the observer to 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.