Enum parking_lot_core::ParkResult [−][src]
pub enum ParkResult {
Unparked(UnparkToken),
Invalid,
TimedOut,
}Result of a park operation.
Variants
Unparked(UnparkToken)We were unparked by another thread with the given token.
InvalidThe validation callback returned false.
TimedOutThe timeout expired.
Methods
impl ParkResult[src]
impl ParkResultpub fn is_unparked(self) -> bool[src]
pub fn is_unparked(self) -> boolReturns true if we were unparked by another thread.
Trait Implementations
impl Copy for ParkResult[src]
impl Copy for ParkResultimpl Clone for ParkResult[src]
impl Clone for ParkResultfn clone(&self) -> ParkResult[src]
fn clone(&self) -> ParkResultReturns 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 ParkResult[src]
impl Eq for ParkResultimpl PartialEq for ParkResult[src]
impl PartialEq for ParkResultfn eq(&self, other: &ParkResult) -> bool[src]
fn eq(&self, other: &ParkResult) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ParkResult) -> bool[src]
fn ne(&self, other: &ParkResult) -> boolThis method tests for !=.
impl Debug for ParkResult[src]
impl Debug for ParkResultAuto Trait Implementations
impl Send for ParkResult
impl Send for ParkResultimpl Sync for ParkResult
impl Sync for ParkResult