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§
Sourcetype Params: QueryParams
type Params: QueryParams
The inner query params type
Required Methods§
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".