Enum parking_lot::OnceState [−][src]
pub enum OnceState {
New,
Poisoned,
InProgress,
Done,
}Current state of a Once.
Variants
A closure has not been executed yet
A closure was executed but panicked.
A thread is currently executing a closure.
A closure has completed successfully.
Implementations
impl OnceState[src]
impl OnceState[src]pub fn poisoned(self) -> bool[src]
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.
pub fn done(self) -> bool[src]
Returns whether the associated Once has successfully executed a
closure.