Skip to main content

Module shared_runtime

Module shared_runtime 

Source
Expand description

SharedRuntime trait and its implementations: ForkSafeRuntime, BasicRuntime, and [LocalRuntime].

Structs§

BasicRuntime
Non-fork-safe SharedRuntime implementation.
ForkSafeRuntime
Owns a tokio runtime and manages [PausableWorker]s on it.
WorkerHandle
Handle to a worker registered on a SharedRuntime.

Enums§

BlockOnTimeoutError
Error returned by BlockingRuntime::block_on_with_timeout.
SharedRuntimeError
Errors that can occur when using a SharedRuntime implementation.
WorkerHandleError

Traits§

BlockingRuntime
Extension of SharedRuntime for runtimes that can block the current thread on a future.
SharedRuntime
Common interface for all SharedRuntime implementations.