Docs.rs
async-local-6.0.2
async-local 6.0.2
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
Bajix
Dependencies
ctor ^0.4.1
normal
derive-async-local ^6.0.2
normal
generativity ^1.1
normal
linkme ^0.3.32
normal
num_cpus ^1.16
normal
tokio ^1
normal
optional
tokio ^1
dev
loom ^0.7
normal
Versions
83.33%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
async_
local
6.0.2
All Items
Crate Items
Structs
Traits
Attribute Macros
Derive Macros
Crate
async_local
Copy item path
Source
Structs
§
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>
> and
AsContext
for a struct