Skip to main content

Module ids

Module ids 

Source
Expand description

Engine identifier types — PeerId, NodeSiteId, OpRef, ComponentRef, ExecId, CommandId, RequestId, OpsetId, ComponentTag. Engine-internal IDs. Wire/IR IDs come from bb_ir::ids re-exported here for a single import surface.

Each integer ID is a #[repr(transparent)] newtype so the borrow checker rejects cross-type substitution.

Structs§

CommandId
Async-dispatch command id finalized via ctx.complete_command(cmd, outputs).
ComponentRef
Dense per-Node component instance handle.
ComponentTag
Typed bus-subscription tag - a static &str label naming the kind of event a component receives.
ExecId
Per-execution identifier; survives async completions and cross-Node wire hops.
NodeSiteId
IR-level value site. Names a slot inside a GraphProto’s flow that the engine fills with a slot value.
OpRef
Op handle within a graph. Positional refs encode (graph_idx << 32) | node_idx; one indexed lookup per invoke, no HashMap probe.
OpsetId
Opset identifier. (domain, version) pair routing wire-level dispatch. See docs/IR_AND_DSL.md §5 for the canonical opset catalog.
PeerId
Peer identity. Wraps a fixed-capacity Multihash<64> so overlays pick their own digest algorithm. Same wire shape as libp2p_identity::PeerId; bytes round-trip without translation.
RequestId
Per-request correlation token. Issued by SendReqBatched senders; echoed by receivers in SendResp.