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 for ParkResult
impl PartialEq for ParkResult
impl Copy for ParkResult
impl Eq for ParkResult
impl StructuralPartialEq for ParkResult
Auto Trait Implementations§
impl Freeze for ParkResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Unparked
: 8 bytesInvalid
: 0 bytesTimedOut
: 0 bytes