pub struct TriggerInput {
pub dirty: bool,
pub exited: bool,
pub idle_for: Option<Duration>,
pub since_last_push: Duration,
pub in_backoff: bool,
}Expand description
Pure inputs to the per-session trigger decision, separated from the IO that gathers them so the state machine is unit-testable with synthetic values.
Fields§
§dirty: boolAny file’s fingerprint differs from the last successful push (including
files never pushed). See super::files::fingerprint.
exited: boolThe harness process behind this session is no longer running it.
idle_for: Option<Duration>Age of the newest mtime across the session’s files. None when no files
exist yet — a session can be attributed on the wire before its first
transcript flush.
since_last_push: DurationTime since the last successful push, falling back to time since the session was first tracked, so the periodic net has a baseline before the first push.
in_backoff: boolA previous push failed and its backoff window is still open. The client owns the schedule; this is only its verdict.
Trait Implementations§
Source§impl Clone for TriggerInput
impl Clone for TriggerInput
Source§fn clone(&self) -> TriggerInput
fn clone(&self) -> TriggerInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more