pub struct TimeoutPolicyParameters {
pub default_millis: Option<u64>,
pub max_millis: Option<u64>,
pub per_callee: Option<BTreeMap<String, u64>>,
}Expand description
The timeout family’s parameters of an ExecutorPolicy.
None means uncapped — the honest encoding of “no timeout policy
is in force”, distinct from any concrete millisecond bound.
per_callee (R0.10 wave 3) carries learned per-callee bounds: the
bound that applies to an operation is its callee’s entry when one
exists, the default otherwise, and no bound at all under the floor.
Fields§
§default_millis: Option<u64>Default timeout applied to operations without their own bound, in
milliseconds. None means no default is imposed.
max_millis: Option<u64>Hard ceiling any operation timeout must stay under, in milliseconds.
None means uncapped.
per_callee: Option<BTreeMap<String, u64>>Learned per-callee bounds in milliseconds (R0.10 wave 3), keyed by
the callee identity the decision point journals (a tool name, a
node id). None — every pre-learning policy — means no per-callee
bounds, exactly the v1 behavior.
Implementations§
Source§impl TimeoutPolicyParameters
impl TimeoutPolicyParameters
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
The family’s contract: every bound respects the minimum rung (below it ordinary work aborts early — a correctness hazard), the default stays under the ceiling, and every per-callee entry stays under the ceiling when one is declared. One bad bound condemns the whole set.
Trait Implementations§
Source§impl Clone for TimeoutPolicyParameters
impl Clone for TimeoutPolicyParameters
Source§fn clone(&self) -> TimeoutPolicyParameters
fn clone(&self) -> TimeoutPolicyParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more