Skip to main content

Module rt

Module rt 

Source
Expand description

Declare a dyn-safe trait for the parts of an asynchronous runtime so that we can install it globally.

Re-exportsยง

use futures::future::BoxFuture; ๐Ÿ”’
use futures::task::Spawn; ๐Ÿ”’
use std::sync::OnceLock; ๐Ÿ”’
use web_time_compat::Duration; ๐Ÿ”’
use web_time_compat::Instant; ๐Ÿ”’

Enumsยง

InstallRuntimeError
An error that occurs while installing a runtime.

Staticsยง

RUNTIME_SUPPORT ๐Ÿ”’
A global view of our runtime, used for rate-limited logging.

Traitsยง

RuntimeSupport
A dyn-safe view of the parts of an async runtime that we need for rate-limiting.

Functionsยง

install_runtime
Try to install runtime as a global runtime to be used for rate-limited logging.
rt_support
Return the installed runtime, if there is one.