pub struct ConcreteQueryService { /* private fields */ }Expand description
Delegated query service for resident workflow processes.
The engine resolves the live (workflow, run) handle; this service
rejects suspended residency (AT-007: never resume a workflow solely to
answer a query) and terminal runs, then dispatches run-exact through the
AT QueryService over the engine’s query mailbox seam. Nothing on this
path records events.
Implementations§
Source§impl ConcreteQueryService
impl ConcreteQueryService
Sourcepub fn new(
mailbox_engine: Arc<dyn EngineHandle>,
query_timeout: Duration,
) -> Self
pub fn new( mailbox_engine: Arc<dyn EngineHandle>, query_timeout: Duration, ) -> Self
Create a query service over the engine’s query mailbox seam with the engine-configured reply timeout.
Trait Implementations§
Source§impl QueryService for ConcreteQueryService
impl QueryService for ConcreteQueryService
Source§fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 WorkflowHandle,
name: String,
) -> Pin<Box<dyn Future<Output = Result<Payload, EngineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 WorkflowHandle,
name: String,
) -> Pin<Box<dyn Future<Output = Result<Payload, EngineError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dispatch a named query to the already-resolved workflow target.
Auto Trait Implementations§
impl !RefUnwindSafe for ConcreteQueryService
impl !UnwindSafe for ConcreteQueryService
impl Freeze for ConcreteQueryService
impl Send for ConcreteQueryService
impl Sync for ConcreteQueryService
impl Unpin for ConcreteQueryService
impl UnsafeUnpin for ConcreteQueryService
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