FleetState

Struct FleetState 

Source
pub struct FleetState {
    pub host_states: HashMap<(RolloutId, HostId), HostRolloutState>,
    pub rollouts: HashMap<RolloutId, RolloutSummary>,
    pub outstanding_failing_enforce_probes: HashMap<RolloutId, HashMap<HostId, usize>>,
}
Expand description

Aggregated view of per-host state the planner consults. Built by the CP runtime from host_rollout_records (Phase 4 schema).

Fields§

§host_states: HashMap<(RolloutId, HostId), HostRolloutState>

Per-host state, keyed by (rollout_id, hostname). The reducer state is the source of truth; this map is a flat view derived from host_rollout_records via db::HostRolloutRecords::all_for_rollout per active rollout.

§rollouts: HashMap<RolloutId, RolloutSummary>§outstanding_failing_enforce_probes: HashMap<RolloutId, HashMap<HostId, usize>>

Per-(rollout, host) outstanding enforce-mode probe failure count. Populated from db::probe_failures::outstanding_failing_enforce_probes_by_rollout at FleetState construction time (RFC-0007 §7.2). Read by the compliance-wave gate; absent entries mean zero failing enforce probes (RFC-0005 §6 — no fail-open fallback).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.