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 more