pub trait ExecutionView<S: WorkflowState>: Send + Sync {
// Required methods
fn state(&self) -> &S;
fn emit(&self, chunk: StreamChunk);
fn is_cancelled(&self) -> bool;
}Expand description
受限视图 — Leaf 节点需要的最小能力。
Required Methods§
fn state(&self) -> &S
fn emit(&self, chunk: StreamChunk)
fn is_cancelled(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".