Skip to main content

NodeRecord

Struct NodeRecord 

Source
pub struct NodeRecord {
    pub name: String<64>,
    pub namespace: String<64>,
    pub rmw_name: Option<String<32>>,
    pub locator: Option<String<128>>,
    pub default_sched: SchedContextId,
    pub session_idx: u8,
}
Expand description

Per-Node metadata stored inside the Executor.

Phase 104.C.2 keeps the shape minimal — name, namespace, default SchedContext, optional rmw-name for diagnostics. Future items: per-Node session reference (104.C.3), per-Node liveliness state, per-Node parameter overrides.

Fields§

§name: String<64>§namespace: String<64>§rmw_name: Option<String<32>>

RMW backend the Node was created against. None for the implicit primary Node populated from Executor::open.

§locator: Option<String<128>>

Per-Node locator override. None = use the Executor’s session-level locator.

§default_sched: SchedContextId

Default SchedContext for handles created via this Node. Handles may override per-call. SchedContextId::default() = the executor’s auto-created Fifo slot (slot 0).

§session_idx: u8

Phase 104.C.3 — session-slot index. 0 resolves to the Executor’s primary session field; N >= 1 resolves to extra_sessions[N-1]. Each Node may bind to a different session, enabling multi-RMW bridges in one Executor.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.