pub struct EstimatesConfig {
pub lower: bool,
pub min_runs: u32,
pub margin_pct: f32,
}Expand description
How past runs change a request’s estimate. Raising to what similar runs used always happens; lowering is what these keys control.
Fields§
§lower: boolWhether a request may reserve less than it declares once its runs used less.
min_runs: u32Clean runs needed before a value lowers.
margin_pct: f32Added on top of what the runs used, so a run slightly heavier than the last ones still fits its reservation.
Trait Implementations§
Source§impl Clone for EstimatesConfig
impl Clone for EstimatesConfig
Source§impl Debug for EstimatesConfig
impl Debug for EstimatesConfig
Source§impl Default for EstimatesConfig
impl Default for EstimatesConfig
Source§impl<'de> Deserialize<'de> for EstimatesConfigwhere
EstimatesConfig: Default,
impl<'de> Deserialize<'de> for EstimatesConfigwhere
EstimatesConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EstimatesConfig
impl PartialEq for EstimatesConfig
Source§impl Serialize for EstimatesConfig
impl Serialize for EstimatesConfig
impl StructuralPartialEq for EstimatesConfig
Auto Trait Implementations§
impl Forget for EstimatesConfig
impl Freeze for EstimatesConfig
impl Move for EstimatesConfig
impl RefUnwindSafe for EstimatesConfig
impl Send for EstimatesConfig
impl Sync for EstimatesConfig
impl Unpin for EstimatesConfig
impl UnsafeUnpin for EstimatesConfig
impl UnwindSafe for EstimatesConfig
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