pub enum SchedulerTickWorkDisposition {
Complete,
Retry,
}Expand description
Task-context callback selected by one scheduler-tick publication.
observed_ns is the latest monotonic scheduler-tick timestamp coalesced
into this publication. It lets the callback account the carrier thread up
to the IRQ observation boundary without running OS code in hard IRQ.
The callback returns SchedulerTickWorkDisposition::Retry only when a
transient task-context serialization boundary prevented it from consuming
the publication. The task system then republishes the same generation
instead of spinning in one worker pass.
Variants§
Complete
The callback consumed the publication.
Retry
The callback made no state change and needs a later task-context retry.
Trait Implementations§
Source§impl Clone for SchedulerTickWorkDisposition
impl Clone for SchedulerTickWorkDisposition
Source§fn clone(&self) -> SchedulerTickWorkDisposition
fn clone(&self) -> SchedulerTickWorkDisposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchedulerTickWorkDisposition
Source§impl Debug for SchedulerTickWorkDisposition
impl Debug for SchedulerTickWorkDisposition
impl Eq for SchedulerTickWorkDisposition
impl StructuralPartialEq for SchedulerTickWorkDisposition
Auto Trait Implementations§
impl Freeze for SchedulerTickWorkDisposition
impl RefUnwindSafe for SchedulerTickWorkDisposition
impl Send for SchedulerTickWorkDisposition
impl Sync for SchedulerTickWorkDisposition
impl Unpin for SchedulerTickWorkDisposition
impl UnsafeUnpin for SchedulerTickWorkDisposition
impl UnwindSafe for SchedulerTickWorkDisposition
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