pub struct RungParams {
pub disabled: bool,
pub enter: f64,
pub leave: f64,
pub alpha: f64,
pub alpha_slow: f64,
pub probe_ticks: u64,
pub p1_trigger: f64,
}Expand description
2026-09-25: The controller’s thresholds, fixed for the life of one
AdaptiveRung.
Fields§
§disabled: bool2026-09-25: Pins the static ladder. from_env sets it when
METRALE_MTP_STATIC_RUNG is present (any value) or the serve runs an explicit
ladder (speculative::mtp_ladder_pinned: --mtp-k-ladder or
METRALE_MTP_K_LADDER): an operator who spells out the rungs gets exactly those
rungs.
enter: f64§leave: f64§alpha: f64§alpha_slow: f64§probe_ticks: u64§p1_trigger: f64Implementations§
Trait Implementations§
Source§impl Clone for RungParams
impl Clone for RungParams
Source§fn clone(&self) -> RungParams
fn clone(&self) -> RungParams
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 RungParams
impl Debug for RungParams
Source§impl PartialEq for RungParams
impl PartialEq for RungParams
impl Copy for RungParams
impl StructuralPartialEq for RungParams
Auto Trait Implementations§
impl Freeze for RungParams
impl RefUnwindSafe for RungParams
impl Send for RungParams
impl Sync for RungParams
impl Unpin for RungParams
impl UnwindSafe for RungParams
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