Module thread_local

Source

Structsยง

WasiInstanceGuard ๐Ÿ”’
This non-sendable guard provides memory safe access to the WasiInstance object but only when it is constructed with certain constraints
WasiInstanceGuardMemory ๐Ÿ”’
This provides access to the memory inside the instance
WasiInstanceGuardMut ๐Ÿ”’
This non-sendable guard provides memory safe access to the WasiInstance object but only when it is constructed with certain constraints. This one provides mutable access
WasiInstanceHandlesPointer ๐Ÿ”’
This handle protects the WasiInstance and makes it accessible only when you are in the current thread otherwise it will return None. This means it becomes possible to make WasiEnv send without unsafe code however it means that access to the must be checked

Constantsยง

THREAD_LOCAL_INSTANCE_HANDLES ๐Ÿ”’

Staticsยง

LOCAL_INSTANCE_SEED ๐Ÿ”’