temporalio-workflow 0.5.0

Temporal Rust workflow authoring surface
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Host-side command sink trait mirroring the checked-in WIT interface.

use temporalio_common_wasm::protos::coresdk::workflow_commands::WorkflowCommand;

/// Runtime-facing workflow host interface for native and WASM backends.
pub trait WorkflowHost {
    /// Update the details string surfaced through the workflow metadata query.
    fn set_current_details(&self, details: String);
    /// Emit a workflow command for the current activation.
    fn push_command(&self, command: WorkflowCommand);
}