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
sourceimpl 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
sourceimpl Clone for ParkResult
impl Clone for ParkResult
sourcefn clone(&self) -> ParkResult
fn clone(&self) -> ParkResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParkResult
impl Debug for ParkResult
sourceimpl PartialEq<ParkResult> for ParkResult
impl PartialEq<ParkResult> for ParkResult
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ParkResult) -> bool
fn ne(&self, other: &ParkResult) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more