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
(nros_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
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnsafeUnpin for NodeId
impl UnwindSafe for NodeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more