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
Returns true if we were unparked by another thread.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParkResult
impl Send for ParkResult
impl Sync for ParkResult
impl Unpin for ParkResult
impl UnwindSafe for ParkResult
Blanket Implementations
Mutably borrows from an owned value. Read more