pub struct ThrottleDecision {
pub should_recompute: bool,
pub wealth: f64,
pub lambda: f64,
pub empirical_rate: f64,
pub forced_by_deadline: bool,
pub observations_since_recompute: u64,
}Expand description
Decision returned by the throttle on each observation.
Fields§
§should_recompute: boolWhether to trigger recomputation now.
wealth: f64Current wealth (e-value). When ≥ 1/α, triggers recompute.
lambda: f64Current adaptive betting fraction.
empirical_rate: f64Empirical match rate over the sliding window.
forced_by_deadline: boolWhether the decision was forced by hard deadline.
observations_since_recompute: u64Observations since last recompute.
Implementations§
Trait Implementations§
Source§impl Clone for ThrottleDecision
impl Clone for ThrottleDecision
Source§fn clone(&self) -> ThrottleDecision
fn clone(&self) -> ThrottleDecision
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 ThrottleDecision
impl Debug for ThrottleDecision
Source§impl PartialEq for ThrottleDecision
impl PartialEq for ThrottleDecision
impl Copy for ThrottleDecision
impl StructuralPartialEq for ThrottleDecision
Auto Trait Implementations§
impl Freeze for ThrottleDecision
impl RefUnwindSafe for ThrottleDecision
impl Send for ThrottleDecision
impl Sync for ThrottleDecision
impl Unpin for ThrottleDecision
impl UnwindSafe for ThrottleDecision
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