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 implementNodeContext: Runtime context passed to nodes during executionInitContext: Context for asynchronous initializationOutputSender: Handle for sending packets to downstream nodes
Structs§
- Init
Context - Context provided to nodes during initialization.
- Node
Context - The context provided by the engine to a node when it is run.
- Output
Sender - A handle given to a node to send its output packets.
Enums§
- Output
Routing - An enum representing the two ways a node’s output can be routed.
- Output
Send Error - Error returned by
OutputSender::sendwhen a packet cannot be delivered.
Traits§
- Processor
Node - The fundamental trait for any processing node, designed as an actor.
Type Aliases§
- Node
Factory - A factory function that creates a new instance of a node, accepting optional configuration. Wrapped in an Arc to make it cloneable.
- Resource
KeyHasher - A factory function that computes a hash of parameters for resource caching.
- Routed
Packet Message - Message type for routed packet delivery.
Uses
Arc<str>for node and pin names to avoid heap allocations on every send.