Enum parking_lot::OnceState
source · [−]pub enum OnceState {
New,
Poisoned,
InProgress,
Done,
}
Expand description
Current state of a Once
.
Variants
New
A closure has not been executed yet
Poisoned
A closure was executed but panicked.
InProgress
A thread is currently executing a closure.
Done
A closure has completed successfully.
Implementations
Returns whether the associated Once
has been poisoned.
Once an initialization routine for a Once
has panicked it will forever
indicate to future forced initialization routines that it is poisoned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OnceState
impl UnwindSafe for OnceState
Blanket Implementations
Mutably borrows from an owned value. Read more