Crate durable_workflow

Source
Expand description

Minimal Rust SDK for the Durable Workflow worker protocol.

The crate covers the v1 Rust round-trip: start and signal workflows, register a Rust worker, poll workflow and activity tasks, 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::Value from a JSON literal.

Structs§

ActivityCall
ActivityContext
ActivityHeartbeatResponse
ActivityTask
Client
ClientBuilder
HistoryEvent
PayloadEnvelope
PollWorkflowTaskResponse
RegisterWorkerResponse
SignalCall
Worker
WorkerHeartbeatObservation
WorkflowContext
WorkflowDescription
WorkflowHandle
WorkflowResultOptions
WorkflowTask

Enums§

Error
Value
Represents any valid JSON value.

Constants§

CONTROL_PLANE_VERSION
DEFAULT_CODEC
JSON_CODEC
SDK_VERSION
WORKER_PROTOCOL_VERSION

Functions§

decode_payload
encode_payload

Type Aliases§

Result