Enum parking_lot::OnceState [−][src]
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 sucessfully.
Methods
impl OnceState
[src]
[−]
impl OnceState
pub fn poisoned(&self) -> bool
[src]
[−]
pub fn poisoned(&self) -> bool
Returns whether the associated Once
has been poisoned.
Once an initalization 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]
[−]
pub fn done(&self) -> bool
Returns whether the associated Once
has successfullly executed a
closure.
Trait Implementations
impl Copy for OnceState
[src]
impl Copy for OnceState
impl Clone for OnceState
[src]
[+]
impl Clone for OnceState
impl Eq for OnceState
[src]
impl Eq for OnceState
impl PartialEq for OnceState
[src]
[+]
impl PartialEq for OnceState
impl Debug for OnceState
[src]
[+]
impl Debug for OnceState