Skip to main content

Module exec

Module exec 

Source
Expand description

The order executor: one verified order → one of holger’s own verbs → one ack.

The host hands a HolgerBox (holger-server-lib’s fleet_box, a test’s fake). Every verb defaults to a refusal BY NAME, so a box that cannot do one says why instead of the guardian waiting. The money is checked HERE as well as in the box: an entitlement, a snapshot and a growth step are verified under the monetize key before the box is asked to move anything.

Re-exports§

pub use crate::order::Recharge as RechargeAsk;

Structs§

Ctx
What the executor knows about the order’s context: the shared pump’s own (P4a). What the product’s executor knows about the order’s context.
NoAsk
A caller with no channel to ask on.

Enums§

Applied
What an entitlement did on the box.
GrowState
Where the grow machine stands, as a pulled growth reads it.

Constants§

SECTORS_PER_GIB
512-byte sectors in a GiB.

Traits§

GrowSet
Fleet.Ask{grow_set}: monetize sizes THIS box’s own data disks.
HolgerBox
Holger’s verbs, as an order reaches them. Sync: the executor runs on a jera job’s blocking thread.

Functions§

execute
Run one verified order and say what came of it — the ack the next Report carries. Never panics, never retries: the guardian reads the ack.