Derive Macro task_local::TaskLocal

source · []
#[derive(TaskLocal)]
Expand description

This takes care of implementing TaskLocal by setting up storage and using it for the required key() method.

This derive macro does not use any attributes.

Any #[derive]-able types are allowed. Generics are not allowed (neither lifetimes nor types). If you require storing a type that is generic with specific generic parameters, you must implement it manually.