pub struct ThrottleLog {
pub timestamp: Instant,
pub observation_idx: u64,
pub matched: bool,
pub wealth_before: f64,
pub wealth_after: f64,
pub lambda: f64,
pub empirical_rate: f64,
pub action: &'static str,
pub time_since_recompute_ms: f64,
}Expand description
Decision log entry for observability.
Fields§
§timestamp: InstantTimestamp of the observation.
observation_idx: u64Observation index (total count).
matched: boolWhether this observation was a match (X_t = 1).
wealth_before: f64Wealth before this observation.
wealth_after: f64Wealth after this observation.
lambda: f64Betting fraction used.
empirical_rate: f64Empirical match rate.
action: &'static strAction taken.
time_since_recompute_ms: f64Time since last recompute (ms).
Trait Implementations§
Source§impl Clone for ThrottleLog
impl Clone for ThrottleLog
Source§fn clone(&self) -> ThrottleLog
fn clone(&self) -> ThrottleLog
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 moreAuto Trait Implementations§
impl Freeze for ThrottleLog
impl RefUnwindSafe for ThrottleLog
impl Send for ThrottleLog
impl Sync for ThrottleLog
impl Unpin for ThrottleLog
impl UnwindSafe for ThrottleLog
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