Enum parking_lot_core::ParkResult [−][src]
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.
Tuple Fields of Unparked
0: UnparkToken
The validation callback returned false.
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