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]
impl ParkResult
pub fn is_unparked(self) -> bool
[src]
pub fn is_unparked(self) -> bool
Returns true if we were unparked by another thread.
Trait Implementations
impl Copy for ParkResult
[src]
impl Copy for ParkResult
impl Clone for ParkResult
[src]
impl Clone for ParkResult
fn clone(&self) -> ParkResult
[src]
fn clone(&self) -> ParkResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for ParkResult
[src]
impl Eq for ParkResult
impl PartialEq for ParkResult
[src]
impl PartialEq for ParkResult
fn eq(&self, other: &ParkResult) -> bool
[src]
fn eq(&self, other: &ParkResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParkResult) -> bool
[src]
fn ne(&self, other: &ParkResult) -> bool
This method tests for !=
.
impl Debug for ParkResult
[src]
impl Debug for ParkResult
Auto Trait Implementations
impl Send for ParkResult
impl Send for ParkResult
impl Sync for ParkResult
impl Sync for ParkResult