Skip to main content

NodeFn

Type Alias NodeFn 

Source
pub type NodeFn = Rc<dyn Fn(&Ctx)>;
Expand description

A node fn: (&Ctx) -> () (R-fn-contract / D8). Single-thread (D22) ⇒ no Send bound. Stored as Rc so Dispatcher::invoke can clone it out of the pool and release the pool borrow before calling it — a fn that re-drives a downstream node (nested invoke) must not find the pool already borrowed.

Aliased Type§

pub struct NodeFn { /* private fields */ }