[−][src]Module stk::tls
Utilities for storing and accessing the virtual machine from thread-local storage.
Warning: This is potentially very unsafe, and maybe even unsound.
The serde implementation of VirtualPtr
relies on being called inside of
with_vm.
Structs
InjectVm | A future which wraps polls to have access to the TLS virtual machine. |
Functions
inject_vm | Inject the vm into TLS while running the given closure. |
with_vm | Run the given closure with access to the vm. |