Skip to main content

Query

Trait Query 

Source
pub trait Query:
    Serialize
    + DeserializeOwned
    + Send
    + Sync
    + QueryId
    + QueryIdStatic
    + QueryItemType
    + QueryHandler
    + WithTransaction
    + AnyQuery
    + 'static {
    type Params: QueryParams;

    // Required method
    fn watch(
        &self,
        client: &MykoClient,
    ) -> Cell<Vec<Arc<<Self as QueryItemType>::Item>>, CellImmutable>;
}
Expand description

Full query trait implemented on QueryRequest<Q>.

This provides the watch method for client-side subscriptions. For server-side registration, use Q::register() on the params type.

Required Associated Types§

Source

type Params: QueryParams

The inner query params type

Required Methods§

Source

fn watch( &self, client: &MykoClient, ) -> Cell<Vec<Arc<<Self as QueryItemType>::Item>>, CellImmutable>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§