Module node

Module node 

Source
Expand description

Core node abstractions and ProcessorNode trait.

This module defines the fundamental interface for processing nodes:

  • ProcessorNode: The core trait that all nodes must implement
  • NodeContext: Runtime context passed to nodes during execution
  • InitContext: Context for asynchronous initialization
  • OutputSender: Handle for sending packets to downstream nodes

Structs§

InitContext
Context provided to nodes during initialization.
NodeContext
The context provided by the engine to a node when it is run.
OutputSender
A handle given to a node to send its output packets.

Enums§

OutputRouting
An enum representing the two ways a node’s output can be routed.
OutputSendError
Error returned by OutputSender::send when a packet cannot be delivered.

Traits§

ProcessorNode
The fundamental trait for any processing node, designed as an actor.

Type Aliases§

NodeFactory
A factory function that creates a new instance of a node, accepting optional configuration. Wrapped in an Arc to make it cloneable.
ResourceKeyHasher
A factory function that computes a hash of parameters for resource caching.
RoutedPacketMessage
Message type for routed packet delivery. Uses Arc<str> for node and pin names to avoid heap allocations on every send.