Expand description
Minimal Rust SDK for the Durable Workflow worker protocol.
The crate covers the v1 Rust round-trip: start, signal, and query workflows,
register a Rust worker, poll workflow, activity, and read-only query tasks,
reconstruct typed workflow-instance state through deterministic replay,
heartbeat worker and activity liveness, and exchange JSON-native payloads
through the same avro generic wrapper used by the existing first-party
SDKs.
Macros§
- json
- Construct a
serde_json::Valuefrom a JSON literal.
Structs§
- Activity
Call - Activity
Context - Activity
Heartbeat Response - Activity
Task - Client
- Client
Builder - History
Event - Payload
Envelope - Poll
Workflow Task Response - Protocol
Failure - A stable failure returned when a server rejects an SDK protocol version.
- Query
Context - Immutable state supplied to a registered query handler.
- Query
Failure - A stable, machine-readable workflow query or query-task settlement failure.
- Query
Signal - One decoded signal in the committed workflow-history snapshot.
- Query
Task - An ephemeral server-routed query task.
- Register
Worker Response - Signal
Call - Worker
- Worker
Heartbeat Observation - Workflow
Context - Workflow
Description - Workflow
Handle - Workflow
Instance - Typed local state owned by one deterministic workflow invocation.
- Workflow
Result Options - Workflow
Task
Enums§
Constants§
- CONTROL_
PLANE_ VERSION - DEFAULT_
CODEC - JSON_
CODEC - QUERY_
TASKS_ CAPABILITY - Worker-registration capability for server-routed read-only queries.
- QUERY_
TASK_ MINIMUM_ WORKER_ PROTOCOL_ VERSION - First additive worker protocol that defines query-task transport.
- SDK_
VERSION - WORKER_
PROTOCOL_ VERSION