Into the example, collector routed str topic declare statically 5 potential levels:
|
pub enum CollectorStrTopic { |
It could be replaced by an attribute, to allow the Packet declaration to compile AND to avoid to redeclare a local type:
|
let packet = Packet::<CollectorStrTopic, String> { |