pub struct ExecutorParkCondition<'executor> { /* private fields */ }Expand description
Borrowed executor predicate for one OS scheduler park attempt.
The OS adapter must evaluate Self::should_abort from inside its own
generation-checked park handshake. The predicate performs only owner-local
reads and atomic observations; it does not poll futures or invoke callbacks.
Implementations§
Source§impl ExecutorParkCondition<'_>
impl ExecutorParkCondition<'_>
Sourcepub fn should_abort(&self) -> bool
pub fn should_abort(&self) -> bool
Reports whether executor work or a wake publication must cancel the OS park.
This operation is bounded, non-blocking, and scheduler-non-reentrant, so an OS adapter may call it from an IRQ-disabled wait-queue predicate.
Trait Implementations§
Auto Trait Implementations§
impl<'executor> !RefUnwindSafe for ExecutorParkCondition<'executor>
impl<'executor> !Send for ExecutorParkCondition<'executor>
impl<'executor> !Sync for ExecutorParkCondition<'executor>
impl<'executor> !UnwindSafe for ExecutorParkCondition<'executor>
impl<'executor> Freeze for ExecutorParkCondition<'executor>
impl<'executor> Unpin for ExecutorParkCondition<'executor>
impl<'executor> UnsafeUnpin for ExecutorParkCondition<'executor>
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