pub struct DecisionLog {
pub timestamp: Instant,
pub elapsed_ms: f64,
pub event_idx: u64,
pub dt_ms: f64,
pub event_rate: f64,
pub regime: Regime,
pub action: &'static str,
pub pending_size: Option<(u16, u16)>,
pub applied_size: Option<(u16, u16)>,
pub time_since_render_ms: f64,
pub coalesce_ms: Option<f64>,
pub forced: bool,
}Expand description
Decision log entry for observability.
Fields§
§timestamp: InstantTimestamp of the decision.
elapsed_ms: f64Elapsed time since logging started (ms).
event_idx: u64Event index in session.
dt_ms: f64Time since last event (ms).
event_rate: f64Current event rate (events/sec).
regime: RegimeDetected regime.
action: &'static strChosen action.
pending_size: Option<(u16, u16)>Pending size (if any).
applied_size: Option<(u16, u16)>Applied size (for apply decisions).
time_since_render_ms: f64Time since last render (ms).
coalesce_ms: Option<f64>Time spent coalescing until apply (ms).
forced: boolWas forced by deadline.
Implementations§
Source§impl DecisionLog
impl DecisionLog
Trait Implementations§
Source§impl Clone for DecisionLog
impl Clone for DecisionLog
Source§fn clone(&self) -> DecisionLog
fn clone(&self) -> DecisionLog
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 DecisionLog
impl RefUnwindSafe for DecisionLog
impl Send for DecisionLog
impl Sync for DecisionLog
impl Unpin for DecisionLog
impl UnsafeUnpin for DecisionLog
impl UnwindSafe for DecisionLog
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