Enum parking_lot::OnceState [−][src]
pub enum OnceState {
New,
Poisoned,
InProgress,
Done,
}Current state of a Once.
Variants
NewA closure has not been executed yet
PoisonedA closure was executed but panicked.
InProgressA thread is currently executing a closure.
DoneA closure has completed sucessfully.
Methods
impl OnceState[src]
impl OnceStatepub fn poisoned(&self) -> bool[src]
pub fn poisoned(&self) -> boolReturns 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) -> boolReturns whether the associated Once has successfullly executed a
closure.
Trait Implementations
impl Copy for OnceState[src]
impl Copy for OnceStateimpl Clone for OnceState[src]
impl Clone for OnceStatefn clone(&self) -> OnceState[src]
fn clone(&self) -> OnceStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Eq for OnceState[src]
impl Eq for OnceStateimpl PartialEq for OnceState[src]
impl PartialEq for OnceStatefn eq(&self, other: &OnceState) -> bool[src]
fn eq(&self, other: &OnceState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for OnceState[src]
impl Debug for OnceState