pub struct BackoffConfig {
pub initial_max_skew: u64,
pub backoff_factor: f64,
pub max_skew_cap: u64,
pub decay_rate: u64,
pub rejection_rate_threshold: f64,
}Expand description
Configuration for the adaptive command rejection backoff (§6.11).
When consecutive tick rollbacks occur, the engine increases the allowed skew between the command’s basis tick and the current tick. This struct controls the shape of that backoff curve.
Fields§
§initial_max_skew: u64Initial maximum skew tolerance (ticks). Default: 2.
backoff_factor: f64Multiplicative factor applied on each consecutive rollback. Default: 1.5.
max_skew_cap: u64Upper bound on the skew tolerance. Default: 10.
decay_rate: u64Number of ticks after last rollback before skew resets. Default: 60.
rejection_rate_threshold: f64Fraction of rejected commands that triggers proactive backoff. Default: 0.20.
Trait Implementations§
Source§impl Clone for BackoffConfig
impl Clone for BackoffConfig
Source§fn clone(&self) -> BackoffConfig
fn clone(&self) -> BackoffConfig
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 BackoffConfig
impl Debug for BackoffConfig
Auto Trait Implementations§
impl Freeze for BackoffConfig
impl RefUnwindSafe for BackoffConfig
impl Send for BackoffConfig
impl Sync for BackoffConfig
impl Unpin for BackoffConfig
impl UnsafeUnpin for BackoffConfig
impl UnwindSafe for BackoffConfig
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