Crate async_local

source ·

Structs

A wrapper type used for creating pointers to thread-locals
A thread-safe pointer to a thread local Context
A thread-safe pointer to a thread-local Context constrained by a phantom lifetime

Traits

A marker trait promising that AsRef<Context<T>> is implemented in a way that can’t be invalidated and that Self doesn’t impl std::ops::Drop
LocalKey extension for creating thread-safe pointers to thread-local Context

Derive Macros

Derive AsRef<Context<T>> and AsContext for a struct