Skip to main content

Module policy

Module policy 

Source
Expand description

When a dead seat earns a restart, and how long the next one waits.

Pure: no I/O, no clock of its own. The caller counts a seat’s deaths, tells this policy how many there have been, and asks whether a run has lasted long enough to count as stable again.

Re-exports§

use std::time::Duration; 🔒
use crate::config::SessionsConfig; 🔒

Structs§

HealPolicy
The settled heal schedule.
SeatFacts
What a seat is, at the moment it died, on the axes that decide whether the death is heal-eligible.