Skip to main content

default_indexer_name

Function default_indexer_name 

Source
pub fn default_indexer_name(base: &Ident) -> Ident
Expand description

What a SUBSCRIBING derived index’s node is called: <Decl>Indexer, the launchable unit that receives the upstream’s messages and fills this declaration’s corpora.

§It is a SECOND TYPE, and the alternative was refused rather than overlooked

Every other node macro makes the declaration ITSELF the unit — impl Declared for Scene beside impl Operator for Scene — and a derived index cannot follow it. A node’s resource demands are Shared<R> FIELDS on the value its constructor builds, and this declaration’s value is a DOCUMENT: one per upstream message, built by new, handed to an engine and put on an edge. Giving it store handles would put a mount inside every document that crosses a wire.

So the document stays what it is and the node is minted beside it. That also keeps the two roads separable in the DEPLOYMENT: a root that mounts MediaIndexer runs the subscriber, and a root that mounts #[ingraph(fuse)] media: Media alone gets the hand road, byte for byte as before.