pub struct NodeId(/* private fields */);Expand description
Opaque handle returned by Executor::node_builder(...).build().
Used in 104.C.3+ to disambiguate handle ownership when multiple
Nodes coexist in one Executor.
Implementations§
Source§impl NodeId
impl NodeId
Sourcepub const PRIMARY: NodeId
pub const PRIMARY: NodeId
Reserved id for the implicit “primary” Node that mirrors the pre-Phase 104.C.2 single-Node Executor identity.
Sourcepub const fn from_raw(raw: u8) -> NodeId
pub const fn from_raw(raw: u8) -> NodeId
Phase 104.C.8.b / C.9.b — build a NodeId from a raw u8 for
FFI consumers that store the index in their own struct
(rcl_node_t.node_id, nros_cpp_node_t.node_id). The value
is not validated against the executor’s nodes table — the
caller is responsible for only constructing ids that
node_builder(...).build() previously returned. Out-of-range
ids fail loudly at the next with_node / _on(...) call.
Trait Implementations§
impl Copy for NodeId
impl Eq for NodeId
Source§impl From<NodeId> for NodeKey
phase-426 W1 — the parameter store’s node key IS this index.
impl From<NodeId> for NodeKey
phase-426 W1 — the parameter store’s node key IS this index.
nros-params sits below nros-node in the layer graph, so it cannot name
NodeId; it defines the same one-byte index as
nros_params::NodeKey and this is the one conversion between them. One
spelling, so a store lookup can never be keyed on a number derived some
other way.