pub struct PollEntry {
pub name: Ident,
pub variant: Ident,
pub cadence: PollCadence,
pub grants: Option<Grants>,
pub body: PollBody,
pub mode: PollMode,
pub concurrent: bool,
}Expand description
ONE poll(…) entry: the name it MINTS, and the clock it runs on.
Fields§
§name: IdentThe bare ident the entry minted, as the declaration wrote it.
MINT BARE, by the round’s law: this name refers to nothing — no upstream, no type, no other declaration — it is a word this entry brings into being so the author can match on it. The bare-marker precedent, one axis over.
variant: IdentThe word this entry takes in the emitted <Node>Due — name in upper camel
case, which is how a Rust variant is spelled.
cadence: PollCadenceExactly one of the two schedule words, already read.
grants: Option<Grants>write = "…" / write = ["…", "…"] — the stores THIS CLOCK’s ticks are granted, in the order
they were written, or None where the entry granted itself none.
INSIDE the entry, by the ruling that moved the word here: a permission is spent BY A TICK, so it is seated at the clock whose ticks spend it. Two clocks sharing a store write the word twice and get two contexts — explicit repetition over one list nobody can read a clock’s reach off, and it is what makes least privilege structural: deleting an entry deletes its grants.
body: PollBodyWHO runs this clock’s ticks — the settled answer to the entry’s mandatory body word.
It is the PRESENCE SPLIT’s only input. An entry that mounted leaves <Node>Sweeps entirely —
there is no method for it, because the body is not the operator’s — and a node all of whose
entries mounted emits no sweep trait at all.
mode: PollModeWHERE this clock’s tick runs. Mandatory on every entry: a role is DECLARED rather than inferred, so there is no default and no second spelling of one.
concurrent: boolThe bare concurrent word — free concurrency for a sync-detached entry, where the default is
at most one tick in flight.
Meaningful only on PollMode::Spawn and PollMode::Rayon; every other mode refuses it by
name, so a true here always names one of those two.