std
1.88.0-nightly-4824c2bb7-2025-05-02
Module futex
Module Items
Structs
Constants
In std::
sys::
sync::
once
std
::
sys
::
sync
::
once
Module
futex
Copy item path
Source
Structs
ยง
Completion
Guard
๐
Once
Once
State
Constants
ยง
COMPLETE
๐
Initialization has completed and all future calls should finish immediately.
INCOMPLETE
๐
No initialization has run yet, and no thread is currently using the Once.
POISONED
๐
Some thread has previously attempted to initialize the Once, but it panicked, so the Once is now poisoned. There are no other threads currently accessing this Once.
QUEUED
๐
May only be set if the state is not COMPLETE.
RUNNING
๐
Some thread is currently attempting to run initialization. It may succeed, so all future threads need to wait for it to finish.
STATE_
MASK
๐