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]
fn is_unparked(self) -> bool
Returns true if we were unparked by another thread.
Trait Implementations
impl Copy for ParkResult[src]
impl Clone for ParkResult[src]
fn clone(&self) -> ParkResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for ParkResult[src]
impl PartialEq for ParkResult[src]
fn eq(&self, __arg_0: &ParkResult) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParkResult) -> bool
This method tests for !=.