Enum Output
pub enum Output {
Ack(u64),
Reject(u64),
Result {
run: RunId,
status: Status,
payload: Payload,
},
ChildStart {
parent: ParentRef,
wtype: Name,
id: Name,
flags: u8,
deadline_ms: u64,
input: Payload,
},
ChildResult {
parent: ParentRef,
status: Status,
payload: Payload,
},
Signal {
target: Name,
name: Name,
payload: Payload,
dedup: u64,
},
UpdateResult {
run: RunId,
ordinal: u64,
id: Name,
status: Status,
payload: Payload,
},
Reply {
token: u64,
status: Status,
payload: Payload,
},
Refuse {
token: u64,
message: Payload,
},
Close {
target: Name,
wtype: Name,
parent: Option<ParentRef>,
terminate: bool,
reason: Payload,
},
}Expand description
Something that may leave the process once its record is durable.
Variants§
Ack(u64)
Acknowledge a client request (start, signal, cancel).
Reject(u64)
Refuse a client request, once the state the refusal is based on is
durable (for example, a signal to a run whose Done was just
appended: a crash could still take that Done back).
Result
A run finished; release its result to callers.
ChildStart
Start (or attach to) a child workflow.
ChildResult
Report a child’s result to its parent.
Signal
Deliver a signal to another workflow.
UpdateResult
An update’s handler returned; release its result to callers.
Reply
Answer a client request with a value (an update result, a query answer, a refusal with its reason). Never produced by the core.
Refuse
Refuse a client request with a reason (an update’s validator said no, a completion token is stale). Never produced by the core.
Close
Close another workflow: a child under its parent close policy
(parent names the closing parent), or a cancel request sent by
workflow code.