pub struct RequestInfoExecutor { /* private fields */ }Expand description
A built-in node that surfaces incoming messages as external requests.
When a message reaches this node it records a request whose response is
routed back to the executor that sent the message (the requester), and emits
a RequestInfo event. The run pauses once the message queue drains while the
request is unanswered.
Divergence from the Python engine: the reference implementation uses
ctx.request_info() + @response_handler on ordinary executors rather than
a dedicated node, and (in .NET) routes the response along the node’s outgoing
edges. Here — per the port’s design — the response is delivered back to the
requesting (upstream) executor.
Implementations§
Source§impl RequestInfoExecutor
impl RequestInfoExecutor
Sourcepub fn new(id: impl Into<String>) -> RequestInfoExecutor
pub fn new(id: impl Into<String>) -> RequestInfoExecutor
Create a request-info node with the given id.
Trait Implementations§
Source§impl Executor for RequestInfoExecutor
impl Executor for RequestInfoExecutor
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
message: Value,
ctx: WorkflowContext,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RequestInfoExecutor: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
message: Value,
ctx: WorkflowContext,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RequestInfoExecutor: 'async_trait,
Handle an incoming message.
Auto Trait Implementations§
impl Freeze for RequestInfoExecutor
impl RefUnwindSafe for RequestInfoExecutor
impl Send for RequestInfoExecutor
impl Sync for RequestInfoExecutor
impl Unpin for RequestInfoExecutor
impl UnsafeUnpin for RequestInfoExecutor
impl UnwindSafe for RequestInfoExecutor
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