pub enum LocalKeyState {
    Uninitialized,
    Valid,
    Destroyed,
}Unstable (thread_local_state #27716): state querying was recently added
 Indicator of the state of a thread local storage key.
Variants
| Uninitialized | Unstable (thread_local_state#27716): state querying was recently added All keys are in this state whenever a thread starts. Keys will
transition to the Validstate once the first call towithhappens
and the initialization expression succeeds. Keys in the Uninitializedstate will yield a reference to the closure
passed towithso long as the initialization routine does not panic. | 
| Valid | Unstable (thread_local_state#27716): state querying was recently added Once a key has been accessed successfully, it will enter the Validstate. Keys in theValidstate will remain so until the thread exits,
at which point the destructor will be run and the key will enter theDestroyedstate. Keys in the Validstate will be guaranteed to yield a reference to the
closure passed towith. | 
| Destroyed | Unstable (thread_local_state#27716): state querying was recently added When a thread exits, the destructors for keys will be run (if
necessary). While a destructor is running, and possibly after a
destructor has run, a key is in the Destroyedstate. Keys in the Destroyedstates will trigger a panic when accessed viawith. | 
Trait Implementations
Derived Implementations