Skip to main content

invoke

Function invoke 

Source
pub fn invoke(
    _node: &NodeProto,
    inputs: &[(&str, &dyn SlotValue)],
    ctx: &mut RuntimeResourceRef<'_>,
) -> Result<DispatchResult, OpError>
Expand description

Invoke fn - merge the address into the AddressBook.

New peer → add_peer (entry created with ref_count = 1). Known peer → register_address (idempotent append, no ref_count change). Returns Immediate(vec![]) on success; missing or mistyped inputs surface as OpError so the recording surface notices the wiring mistake.