Skip to main content

collect_protocol_stack

Function collect_protocol_stack 

Source
pub fn collect_protocol_stack(pkt: &Packet<'_>) -> Vec<&'static str>
Expand description

Walk the full protocol stack recursively, collecting names at each layer.

This combines the Composite pattern (recursive inner() traversal) with the Visitor pattern (type-safe dispatch at each level).