pub struct NullNodeRuntime;Expand description
No-op NodeDispatchRuntime for tests / placeholders. Every call
returns Err(()) so callers that depend on a populated runtime
fail loud rather than silently no-op.
BoardEntry::run impls replace this with a real
ExecutorNodeRuntime-backed sink before invoking the user
setup closure.
Trait Implementations§
Source§impl Debug for NullNodeRuntime
impl Debug for NullNodeRuntime
Source§impl Default for NullNodeRuntime
impl Default for NullNodeRuntime
Source§fn default() -> NullNodeRuntime
fn default() -> NullNodeRuntime
Returns the “default value” for a type. Read more
Source§impl NodeDispatchRuntime for NullNodeRuntime
impl NodeDispatchRuntime for NullNodeRuntime
Source§fn spin_once(&mut self, _timeout_ms: u32) -> Result<(), ()>
fn spin_once(&mut self, _timeout_ms: u32) -> Result<(), ()>
Drive the underlying executor for at most
timeout_ms
milliseconds. Ok(()) on a clean spin (including timeout);
Err(()) if the executor surfaces a spin error. Read moreSource§fn executor_handle(&mut self) -> *mut c_void
fn executor_handle(&mut self) -> *mut c_void
Phase 258 (Track 2, 2a) — raw
*mut Executor (as void*) for the
owned-spin entry, so a Node pkg’s register(runtime) wrapper can call
the uniform __nros_component_<pkg>_install(.., executor, ..) seam
(nros::install_node_typed) instead of the retired opaque-fn-ptr
register_dispatch_slot_dyn bridge. A pointer crosses the
nros-platform → nros layering wall cleanly (the concrete
ExecutorNodeRuntime lives in nros; this trait can’t name it). Read moreSource§fn observed_callback_counts(&self) -> (usize, usize)
fn observed_callback_counts(&self) -> (usize, usize)
Observability counters from hosted/runtime tests. Read more
Source§fn signal_callback(&mut self, _cb: SignaledCallback<'_>)
fn signal_callback(&mut self, _cb: SignaledCallback<'_>)
Hand a signaled callback to the framework-side dispatcher
(Phase 216.A.2). Only meaningful for
DispatchStrategy::Deferred
(RTIC / Embassy) runtimes — Inline runtimes drive callbacks
directly from spin_once and never call this. The default panic
surfaces the mis-wire loudly rather than silently dropping the
callback signal.Source§fn dispatch_strategy(&self) -> DispatchStrategy
fn dispatch_strategy(&self) -> DispatchStrategy
Declare how this runtime delivers callbacks (Phase 216.A.2).
nros check (Phase 216.D.1) cross-validates each Node pkg’s
Node::DISPATCH against this value. Defaults to Inline so
every existing impl reports the historical behavior unchanged.Auto Trait Implementations§
impl Freeze for NullNodeRuntime
impl RefUnwindSafe for NullNodeRuntime
impl Send for NullNodeRuntime
impl Sync for NullNodeRuntime
impl Unpin for NullNodeRuntime
impl UnsafeUnpin for NullNodeRuntime
impl UnwindSafe for NullNodeRuntime
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