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 moresource§impl Debug for ParkResult
impl Debug for ParkResult
source§impl PartialEq<ParkResult> for ParkResult
impl PartialEq<ParkResult> for ParkResult
source§fn eq(&self, other: &ParkResult) -> bool
fn eq(&self, other: &ParkResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParkResult
impl Eq for ParkResult
impl StructuralEq for ParkResult
impl StructuralPartialEq for ParkResult
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more