#[non_exhaustive]pub enum WorkerDecision {
Step,
WaitMicros(u64),
Stop,
}Expand description
Scheduling decision for a concurrent worker.
Returned by WorkerScheduler::decide to control per-worker stepping in
scoped concurrent execution.
#[non_exhaustive] — future variants will be added as planned work lands:
StepBatch(usize)(C1 batch semantics — step N messages in one call)StepWithBudget { max_micros: u64 }(R11 execution measurement)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Step
Step the node once.
WaitMicros(u64)
Wait before calling decide() again. Duration in microseconds.
Stop
This worker should exit.
Trait Implementations§
Source§impl Clone for WorkerDecision
impl Clone for WorkerDecision
Source§fn clone(&self) -> WorkerDecision
fn clone(&self) -> WorkerDecision
Returns a duplicate 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 WorkerDecision
impl Debug for WorkerDecision
Source§impl PartialEq for WorkerDecision
impl PartialEq for WorkerDecision
impl Copy for WorkerDecision
impl Eq for WorkerDecision
impl StructuralPartialEq for WorkerDecision
Auto Trait Implementations§
impl Freeze for WorkerDecision
impl RefUnwindSafe for WorkerDecision
impl Send for WorkerDecision
impl Sync for WorkerDecision
impl Unpin for WorkerDecision
impl UnsafeUnpin for WorkerDecision
impl UnwindSafe for WorkerDecision
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