pub struct SettleEvaluator { /* private fields */ }Expand description
The settle detector as a PulseEvaluator. It holds the phase’s
objective kernel (a clone of node X’s kernel — already bound to
this evaluation’s coordinate, the same kernel
read_objective_at_completion pulls) and a fixed is_stable
engine. Each cadence pulse:
- positions the objective kernel at the pulse’s ordinal on its
coordinate input (typically
cycle); a volatile objective reader re-reads the latest published window on every pull regardless; - pulls the objective wire — the fresh windowed objective value;
- feeds it to
SettleInterpreter(is_stable).
It yields a terminal Outcome when the objective settles
(interrupted — stopped early, register trustworthy) or when the
settle timeout elapses without settling (failed — SRD-86 §6
step 5). None while the loop should hold.
Implementations§
Source§impl SettleEvaluator
impl SettleEvaluator
Sourcepub fn new(
objective: ScopeKernel,
objective_wire: &str,
poke_input: &str,
interp: SettleInterpreter,
timeout: Duration,
min_viable: Duration,
) -> Self
pub fn new( objective: ScopeKernel, objective_wire: &str, poke_input: &str, interp: SettleInterpreter, timeout: Duration, min_viable: Duration, ) -> Self
objective is the phase’s objective kernel (node X clone);
objective_wire the objective output; poke_input the coordinate
input positioned at each pulse’s ordinal (typically cycle);
interp the is_stable engine fed the objective value.
Sourcepub fn register(&self) -> Arc<ArcSwap<SettleReading>> ⓘ
pub fn register(&self) -> Arc<ArcSwap<SettleReading>> ⓘ
The settled-value register (grab it before boxing the evaluator).
Trait Implementations§
Source§impl PulseEvaluator for SettleEvaluator
impl PulseEvaluator for SettleEvaluator
Auto Trait Implementations§
impl !RefUnwindSafe for SettleEvaluator
impl !UnwindSafe for SettleEvaluator
impl Forget for SettleEvaluator
impl Freeze for SettleEvaluatorwhere
*const dyn Kernel is !null: Freeze,
PhantomData<dyn Kernel>: Freeze,
*const ArcInner<PolydatProgram> is !null: Freeze,
PhantomData<ArcInner<PolydatProgram>>: Freeze,
*const ArcInner<dyn KernelProgram> is !null: Freeze,
PhantomData<ArcInner<dyn KernelProgram>>: Freeze,
*const ArcInner<ScopeModule<Child<RootMarker>>> is !null: Freeze,
PhantomData<ArcInner<ScopeModule<Child<RootMarker>>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<f64>: Freeze,
*const ArcInner<ArcSwapAny<Arc<SettleReading>>> is !null: Freeze,
PhantomData<ArcInner<ArcSwapAny<Arc<SettleReading>>>>: Freeze,
impl Move for SettleEvaluator
impl Send for SettleEvaluatorwhere
BoxRaw<dyn Kernel>: Send,
Arc<PolydatProgram>: Send,
Arc<dyn KernelProgram>: Send,
Arc<ScopeModule<Child<RootMarker>>>: Send,
RawVecInner: Send,
Arc<ArcSwapAny<Arc<SettleReading>>>: Send,
impl Sync for SettleEvaluatorwhere
BoxRaw<dyn Kernel>: Sync,
Arc<PolydatProgram>: Sync,
Arc<dyn KernelProgram>: Sync,
Arc<ScopeModule<Child<RootMarker>>>: Sync,
RawVecInner: Sync,
Arc<ArcSwapAny<Arc<SettleReading>>>: Sync,
impl Unpin for SettleEvaluatorwhere
Box<dyn Kernel>: Unpin,
Arc<PolydatProgram>: Unpin,
Arc<dyn KernelProgram>: Unpin,
Arc<ScopeModule<Child<RootMarker>>>: Unpin,
*const u8 is !null: Unpin,
Arc<ArcSwapAny<Arc<SettleReading>>>: Unpin,
impl UnsafeUnpin for SettleEvaluatorwhere
*const dyn Kernel is !null: UnsafeUnpin,
PhantomData<dyn Kernel>: UnsafeUnpin,
*const ArcInner<PolydatProgram> is !null: UnsafeUnpin,
PhantomData<ArcInner<PolydatProgram>>: UnsafeUnpin,
*const ArcInner<dyn KernelProgram> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn KernelProgram>>: UnsafeUnpin,
*const ArcInner<ScopeModule<Child<RootMarker>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<ScopeModule<Child<RootMarker>>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
*const ArcInner<ArcSwapAny<Arc<SettleReading>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<ArcSwapAny<Arc<SettleReading>>>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more