pub struct Census {
pub open_cases: u64,
pub quarantined_runs: u64,
pub oldest_case_age_secs: Option<u64>,
pub due_deadlines: u64,
pub unaccounted_breaches: u64,
pub pending_timers: u64,
pub open_tasks: u64,
}Expand description
A point-in-time reading of everything a plane is holding.
Assembled by querying the stores rather than by accumulating deltas — see the module docs on why an incremented gauge drifts.
now is a parameter for the same reason the sweeper’s is: a census that read
the clock itself could not be tested against a year of ageing obligations,
and would need an escape from the determinism gate to exist at all.
Fields§
§open_cases: u64§quarantined_runs: u64Runs resting on a quarantined conclusion.
A level, deliberately, and the one gauge here that is not about work waiting to be done: it is work waiting to be judged. The counter beside it says how often quarantining happened, which cannot answer how many are outstanding — the question an operator actually pages on, and the one a per-process counter answers with zero after every restart.
It drains, and only by a person deciding:
decide_quarantine either
hands the run back to be judged again or closes it as abandoned. What
it must not be read as is a measure of risk retired — an abandoned run
leaves this count while whatever it left in the world stays exactly
where it was, which is why the doubt is delivered as an audit finding
derived from the journal rather than as a status somebody can clear.
oldest_case_age_secs: Option<u64>Seconds since the longest-open case was opened, or None if none are open.
due_deadlines: u64§unaccounted_breaches: u64Breaches nobody has accounted for. Drains through
CaseStore::acknowledge_breach.
pending_timers: u64§open_tasks: u64Trait Implementations§
impl Copy for Census
impl Eq for Census
impl StructuralPartialEq for Census
Auto Trait Implementations§
impl Freeze for Census
impl RefUnwindSafe for Census
impl Send for Census
impl Sync for Census
impl Unpin for Census
impl UnsafeUnpin for Census
impl UnwindSafe for Census
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more