Crate truelayer_extensions

Crate truelayer_extensions 

Source
Expand description

A type map for storing data of arbritrary type.

Structs§

Extensions
Extensions is a type map: values are stored and retrieved using their TypeId.

Functions§

get_local_item
Retrieve any item from task-local storage.
set_local_item
Set an item in task-local storage.
with_extensions
Sets a task local to Extensions before fut is run, and fetches the contents of the task local Extensions after completion and returns it.