Crate async_local
SourceStructs§
- Context
- A wrapper type used for creating pointers to thread-locals
- Local
Ref - A thread-safe pointer to a thread-local
Context
constrained by a “generative” lifetime brand that is invariant over the lifetime parameter and cannot be coerced into'static
Traits§
- AsContext
- A marker trait promising that AsRef<
Context<T>
> is implemented in a way that can’t be invalidated - Async
Local - LocalKey extension for creating thread-safe pointers to thread-local
Context
Attribute Macros§
- main
- Configures main to be executed by the selected Tokio runtime
- test
- Marks async function to be executed by runtime, suitable to test environment.
Derive Macros§
- AsContext
- Derive AsRef<
Context<T>
> andAsContext
for a struct