Skip to main content

seed_node_rank

Function seed_node_rank 

Source
pub fn seed_node_rank(
    runtime: &mut RuntimeCtx<'_>,
    name: &'static str,
    namespace: &'static str,
    rank: u8,
) -> Result<(), RuntimeError>
Expand description

phase-509 P5 (RFC-0108 D2) – seed the contract rank of the node the NEXT register call creates, (name, namespace), on the executor the runtime holds: 0 is the most urgent, as the derivation normalises it (nros_orchestration_ir::levels::node_ranks). nros::main! emits it before each ranked node’s register, the Rust twin of the C/C++ packs’ nros_cpp_bind_node_rank.

A runtime with no executor handle (no live executor) has nothing to order and seeds nothing. A binding that does not fit the node-name table is refused with the node’s name, never dropped.