Module current Copy item path Source id ๐ Persistent storage for the thread ID. BUSY ๐ DESTROYED ๐ NONE ๐ CURRENT ๐ current Gets a handle to the thread that invokes it. current_id ๐ Gets the id of the thread that invokes it. current_or_unnamed ๐ Gets a handle to the thread that invokes it. If the handle stored in thread-
local storage was already destroyed, this creates a new unnamed temporary
handle to allow thread parking in nearly all situations. drop_current ๐ This should be run in crate::rt::thread_cleanup
to reset the thread
handle. init_current ๐ set_current ๐ Tries to set the thread handle for the current thread. Fails if a handle was
already set or if the thread ID of thread
would change an already-set ID. try_with_current ๐ Gets a reference to the handle of the thread that invokes it, if the handle
has been initialized.