Crate temporal_sdk_core[][src]

This crate provides a basis for creating new Temporal SDKs without completely starting from scratch

Modules

protos

Contains the protobuf definitions used as arguments to and return values from interactions with super::Core. Language SDK authors can generate structs using the proto definitions that will match the generated structs in this module.

Structs

CoreInitOptions

Holds various configuration information required to call init

ServerGateway

Contains an instance of a client for interacting with the temporal server

ServerGatewayOptions

Options for the connection to the temporal server

Url

A parsed URL record.

Enums

CompleteActivityError

Errors thrown by crate::Core::complete_activity_task

CompleteWfError

Errors thrown by crate::Core::complete_workflow_task

CoreInitError

Errors thrown during initialization of crate::Core

PollActivityError

Errors thrown by crate::Core::poll_activity_task

PollTaskRequest

Contains poll task request. String parameter defines a task queue to be polled.

PollWfError

Errors thrown by crate::Core::poll_workflow_task

Traits

Core

This trait is the primary way by which language specific SDKs interact with the core SDK. It is expected that only one instance of an implementation will exist for the lifetime of the worker(s) using it.

ServerGatewayApis

This trait provides ways to call the temporal server

Functions

init

Initializes an instance of the core sdk and establishes a connection to the temporal server.

tracing_init

Initialize tracing subscribers and output. Core will not call this itself, it exists here so that consumers and tests have an easy way to initialize tracing.