pub struct StaticFloor;Expand description
The static-v0 floor: the behavior every pre-learning run had, and the
baseline every candidate is evaluated against.
Per family: retry retries whenever the gates leave a Retry member
in the legal set (the legal set is computed by
retry_legal_actions, so the floor’s stance is exactly
classify_retry’s); timeout imposes no bound — modeled as the
ladder’s top rung, the lease boundary, Wave 1’s LEASE_BOUND_MS;
placement takes the first eligible worker (the static-pool stance:
no re-placement intelligence); concurrency is uncapped. Every
selection has propensity 1.0: the floor is deterministic.
Trait Implementations§
Source§impl Clone for StaticFloor
impl Clone for StaticFloor
impl Copy for StaticFloor
Source§impl Debug for StaticFloor
impl Debug for StaticFloor
Source§impl Default for StaticFloor
impl Default for StaticFloor
Source§impl TwinPolicy for StaticFloor
impl TwinPolicy for StaticFloor
Source§fn version(&self) -> PolicyVersion
fn version(&self) -> PolicyVersion
The version the policy’s decisions journal under.
Source§fn decide(&self, ctx: &DecisionContext<'_>, _draw: f64) -> (DecisionAction, f64)
fn decide(&self, ctx: &DecisionContext<'_>, _draw: f64) -> (DecisionAction, f64)
Choose an action from
ctx.legal_actions and declare its
propensity. draw is a seeded uniform from [0, 1).Source§fn retry_delay_ms(&self, attempt: u32, draw: f64) -> u64
fn retry_delay_ms(&self, attempt: u32, draw: f64) -> u64
The re-queue delay after a
Retry decision, in milliseconds. The
closed action set carries no delay member — the delay is
policy-parameterized within declared bounds, per the family’s
contract — so it is a method, not an action. Defaults to the
floor’s full-jitter exponential backoff.Source§fn retry_delay_ms_for(
&self,
class: Option<ErrorClass>,
attempt: u32,
draw: f64,
) -> u64
fn retry_delay_ms_for( &self, class: Option<ErrorClass>, attempt: u32, draw: f64, ) -> u64
The re-queue delay with the failure class in scope (R0.10 wave 3):
learned policies tune the schedule per class
(
ParameterizedPolicy); policies that do not override this keep
TwinPolicy::retry_delay_ms’s class-blind behavior. The default
delegates, so every pre-wave-3 policy is unchanged.Auto Trait Implementations§
impl Freeze for StaticFloor
impl RefUnwindSafe for StaticFloor
impl Send for StaticFloor
impl Sync for StaticFloor
impl Unpin for StaticFloor
impl UnsafeUnpin for StaticFloor
impl UnwindSafe for StaticFloor
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