Module roperator::runner[][src]

Modules

testkit

The testkit module provides helpers that make it easy to write integration tests for your operator. To use this, you must enable the testkit feature in the dev-dependencies of your Cargo.toml file.

Structs

OperatorHandle

A handle to a potentially running operator, which allows for shutting it down

UnexpectedShutdownError

Functions

run_operator

Starts the operator and blocks the current thread indefinitely until the operator shuts down due to an error.

run_operator_with_client_config

Starts the operator and blocks the current thread indefinitely until the operator shuts down due to an error.

start_operator_with_runtime

Starts the operator asynchronously using the provided runtime. This function will return immediately with a handle that can be used to shutdown the operator at a later point. Will return an error if it fails to create the http client due to invalid configuration.