pub struct WorkUnit {
pub proc: ProcessId,
pub arg: ResumeArg,
}Expand description
The scheduler’s work-item type: wraps exactly one resume() invocation
(SC-057 — “the unit of parallel/schedulable work is one process
activation… within one activation the compiled kernel runs to
completion on one thread and never yields mid-statement”). Distinct from
determinism::WorkItem (which additionally carries the ordering key) —
WorkUnit is the pre-ordering, “what to run” half.
Fields§
§proc: ProcessId§arg: ResumeArgTrait Implementations§
Auto Trait Implementations§
impl Freeze for WorkUnit
impl RefUnwindSafe for WorkUnit
impl Send for WorkUnit
impl Sync for WorkUnit
impl Unpin for WorkUnit
impl UnsafeUnpin for WorkUnit
impl UnwindSafe for WorkUnit
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