pub struct DataConnectQueryRuntime { /* private fields */ }Expand description
Owns the cached QueryManager for a service, allowing callers to explicitly control when
observer state is created or discarded.
Implementations§
Source§impl DataConnectQueryRuntime
impl DataConnectQueryRuntime
Sourcepub fn service(&self) -> &Arc<DataConnectService>
pub fn service(&self) -> &Arc<DataConnectService>
Returns the service associated with this runtime.
Sourcepub async fn execute_query(
&self,
query_ref: &QueryRef,
) -> DataConnectResult<QueryResult>
pub async fn execute_query( &self, query_ref: &QueryRef, ) -> DataConnectResult<QueryResult>
Executes the provided query reference using this runtime’s cached manager.
Sourcepub async fn subscribe(
&self,
query_ref: QueryRef,
handlers: QuerySubscriptionHandlers,
initial_cache: Option<SerializedQuerySnapshot>,
) -> DataConnectResult<QuerySubscriptionHandle>
pub async fn subscribe( &self, query_ref: QueryRef, handlers: QuerySubscriptionHandlers, initial_cache: Option<SerializedQuerySnapshot>, ) -> DataConnectResult<QuerySubscriptionHandle>
Subscribes to a query using this runtime’s cached manager.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataConnectQueryRuntime
impl !RefUnwindSafe for DataConnectQueryRuntime
impl Send for DataConnectQueryRuntime
impl Sync for DataConnectQueryRuntime
impl Unpin for DataConnectQueryRuntime
impl !UnwindSafe for DataConnectQueryRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more