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.
Invalid
The validation callback returned false.
TimedOut
The timeout expired.
Methods
impl ParkResult
[src]
pub fn is_unparked(self) -> bool
[src]
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
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for ParkResult
[src]
impl PartialEq for ParkResult
[src]
fn eq(&self, __arg_0: &ParkResult) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParkResult) -> bool
[src]
This method tests for !=
.