Skip to main content

NodeOpts

Struct NodeOpts 

Source
pub struct NodeOpts {
    pub initial: HandleId,
    pub equals: EqualsMode,
    pub partial: bool,
    pub is_dynamic: bool,
    pub pausable: PausableMode,
    pub replay_buffer: Option<usize>,
    pub terminal_as_real_input: bool,
}
Expand description

Per-kind opts for Core::register. Cross-kind config knobs live here; per-kind specifics (deps, fn_or_op) live on NodeRegistration.

Fields§

§initial: HandleId

Initial cached value. Only valid for state nodes (no deps + no fn + no op). NO_HANDLE starts the node sentinel.

§equals: EqualsMode

Equality mode for outgoing emissions (R1.3.2). Defaults to EqualsMode::Identity.

§partial: bool

First-run gate (R2.5.3 / D011). When true, the node fires as soon as ANY dep delivers a real handle; when false (default), the node holds until every dep has delivered.

§is_dynamic: bool

Dynamic flag (R2.5.3) — fn declares actually-tracked dep indices per fire. Only meaningful when fn_or_op == Some(Fn(_)) AND deps non-empty.

§pausable: PausableMode

Pause behavior mode (canonical §2.6). Default is PausableMode::Default. See PausableMode for the trade-offs.

§replay_buffer: Option<usize>

Replay buffer cap (canonical R2.6.5 / Lock 6.G — Slice E1, 2026-05-07). None (default) disables; Some(N) keeps a circular buffer of the last N DATA emissions and replays them to late subscribers as part of the per-tier handshake (between Message::Start and any terminal slice). Only DATA is buffered; RESOLVED entries are NOT (R2.6.5 explicit “DATA only”).

§terminal_as_real_input: bool

D263 — when true, the fire_fn first-run gate (R2.5.3) treats a terminal dep as “real input” so the node fires even if the only signal a dep ever delivered was a COMPLETE (no DATA). Mirrors the unconditional fire_operator semantics (fire_operator’s gate already counts dep terminals as real input — e.g. for Reduce). Default false preserves the historical gate (sentinel deps hold the node until they deliver real DATA). NOT yet widened onto the Impl parity contract per D196 + the parity-tests comment (“NOT widened onto Impl”); kept substrate-internal until a cross-arm scenario surfaces.

Trait Implementations§

Source§

impl Clone for NodeOpts

Source§

fn clone(&self) -> NodeOpts

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeOpts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NodeOpts

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for NodeOpts

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.