跳到主要内容

Client

查看 Markdown

This page lists the Rust SDK names for the Client. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Rust SDK API reference.

API names​

TaskRust APIDex behavior
Create a ClientClient::try_new or Client::new, with Registry, BlobCache, and ClientOptionsClient requests
Start a Flowstart_flow, or start_flow_with_options with StartFlowOptionsStart a Flow
Invoke an RPCinvoke_rpc and invoke_rpc_without_inputInvoke an RPC
Read Attributesget_attributesRead Attributes
Wait for a Flow to closewait_for_flow and wait_for_flow_with_timeoutWait for a Flow
Wait for a Step execution to completewait_for_step_completion, with WaitForStepCompletionOptionsWait for a Step
Wait until an Attribute matcheswait_for_attribute_match and wait_for_attribute_map_instance_match, with WaitForAttributeOptionsWait for an Attribute match
Describe a Flowdescribe_flowDescribe a Flow
Search Flowssearch_flows, search_flows_page, and search_flows_with_optionsSearch Flows
Stop a Flowstop_flow, with StopFlowOptionsStop a Flow
Skip a Timerskip_timerSkip a Timer
Update FlowConfigupdate_flow_configUpdate FlowConfig
Write and read a Streamwrite_stream, read_stream, and list_stream_messagesStream
Upload Flow definitionsupload_flow_definitions, with FlowDefinitionDocument; returns FlowDefinitionUploadResult values. Since 1.45.0Flow definitions
Time travel a Flowtime_travel, with TimeTravelOptionsTime travel
Handle a failed requestSdkError, with ServiceError and ErrorSubStatusClient requests

Every Client method blocks the calling thread. An internal Tokio runtime performs the requests.

Example​

Example: examples/rust/src/primitives/client_apis/controller.rs