Enum parking_lot_core::ParkResult
source · pub enum ParkResult {
Unparked(UnparkToken),
Invalid,
TimedOut,
}
Expand description
Result of a park operation.
Variants§
Unparked(UnparkToken)
We were unparked by another thread with the given token.
Invalid
The validation callback returned false.
TimedOut
The timeout expired.
Implementations§
source§impl ParkResult
impl ParkResult
sourcepub fn is_unparked(self) -> bool
pub fn is_unparked(self) -> bool
Returns true if we were unparked by another thread.
Trait Implementations§
source§impl Clone for ParkResult
impl Clone for ParkResult
source§fn clone(&self) -> ParkResult
fn clone(&self) -> ParkResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParkResult
impl Debug for ParkResult
source§impl PartialEq<ParkResult> for ParkResult
impl PartialEq<ParkResult> for ParkResult
source§fn eq(&self, other: &ParkResult) -> bool
fn eq(&self, other: &ParkResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.