pub enum ReducerInput {
HostEvent {
rollout_id: RolloutId,
event: Event,
},
AgentAdvanceTick,
ManifestSetUpdated(Box<SignedManifestSet>),
BootstrapHost(Box<HostRolloutSnapshot>),
}Expand description
Reducer-task inputs.
ReducerInput::HostEvent— workers synthesised aLocal*event; reducer callsstep()on the agent’sHostRolloutStatefor the givenrollout_id, then runs the applier on the produced effects.ReducerInput::AgentAdvanceTick— periodic timer (mirror of CP’sPlanTick). Drives sustained-failure detection: when a Soaking host’sprobe_failure_first_atexceeds the rollout’s policy threshold the reducer synthesisesLocalSustainedFailureCrossedand feeds it throughstep().
Variants§
HostEvent
AgentAdvanceTick
ManifestSetUpdated(Box<SignedManifestSet>)
Refresh the reducer’s cached SignedManifestSet. Emitted by
the longpoll worker (after verify_rollout_manifest succeeds)
- by the boot-recovery handshake (7f). The reducer needs a
cached manifest to look up
RolloutPolicyforstep()and to resolvechannel/target_closurewhen bootstrappingLocalActivate.
BootstrapHost(Box<HostRolloutSnapshot>)
LIFT #3: rehydrate the reducer’s in-memory HostRolloutState for
an active rollout from a CP-supplied snapshot. Emitted only by
runtime::spawn after the boot-recovery handshake returns
snapshots, before any worker spawns. Directly assigns the
state-machine cache from the snapshot fields, bypassing the
transition machinery — the canonical source of truth lives on
CP, the agent is just rebuilding its local view post-restart.
Auto Trait Implementations§
impl Freeze for ReducerInput
impl RefUnwindSafe for ReducerInput
impl Send for ReducerInput
impl Sync for ReducerInput
impl Unpin for ReducerInput
impl UnwindSafe for ReducerInput
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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