Module pipeline

Module pipeline 

Source
Expand description

§ndn_engine::pipeline — Packet processing pipeline stages

Defines the fixed-stage pipeline through which every NDN packet flows. Each stage receives a PacketContext by value and returns an Action that drives dispatch (Continue, Send, Satisfy, Drop, Nack).

§Key types

  • PipelineStage — trait implemented by each processing step
  • PacketContext — per-packet state passed by value through the pipeline
  • Action — enum controlling packet fate after each stage
  • DecodedPacket — lazily-decoded Interest or Data
  • BoxedStage — type-erased pipeline stage (Box<dyn PipelineStage>)

Re-exports§

pub use action::Action;
pub use action::DropReason;
pub use context::DecodedPacket;
pub use context::PacketContext;
pub use stage::PipelineStage;

Modules§

action
context
stage

Structs§

AnyMap
A type-erased map keyed by TypeId.

Enums§

ForwardingAction
The forwarding decision returned by a Strategy.
NackReason
Reason for a Nack.