pub struct ModePreset {
pub speculation: Option<u32>,
pub max_rungs_delta: Option<i32>,
pub start_at_top: bool,
pub description: &'static str,
pub tradeoff: &'static str,
}Expand description
Knob overrides a RoutingMode applies on top of the route/global escalation config.
Only non-None fields override; absent fields leave the config value unchanged.
Balanced returns all None/false — it is a strict no-op.
Fields§
§speculation: Option<u32>Override for escalation.speculation. None = no override (config value unchanged).
max_rungs_delta: Option<i32>Additive delta applied to max_rungs_per_request. None = no change.
Applied as (current + delta).max(1).
start_at_top: boolWhen true, start at the last ladder rung (top quality), bypassing the bandit.
description: &'static strOne-line description of what this mode targets.
tradeoff: &'static strHonest tradeoff: what you gain and what you give up.
Trait Implementations§
Source§impl Clone for ModePreset
impl Clone for ModePreset
Source§fn clone(&self) -> ModePreset
fn clone(&self) -> ModePreset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModePreset
Auto Trait Implementations§
impl Freeze for ModePreset
impl RefUnwindSafe for ModePreset
impl Send for ModePreset
impl Sync for ModePreset
impl Unpin for ModePreset
impl UnsafeUnpin for ModePreset
impl UnwindSafe for ModePreset
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