pub enum CurrentParkStart {
Notified,
Prepared(PreparedCurrentPark),
}Expand description
Result of beginning an externally queued current-thread park transaction.
OS wait subsystems use this after validating their condition under their own queue lock. The scheduler still owns the generation, deadline, and context switch transaction; callers own only publication and removal of their domain-specific waiter record.
Variants§
Notified
A preceding wake was consumed, so no waiter may be published for this attempt.
Prepared(PreparedCurrentPark)
The current thread entered Parking and must be committed or cancelled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CurrentParkStart
impl !UnwindSafe for CurrentParkStart
impl Freeze for CurrentParkStart
impl Send for CurrentParkStart
impl Sync for CurrentParkStart
impl Unpin for CurrentParkStart
impl UnsafeUnpin for CurrentParkStart
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