Skip to content

use attribute instead of generic for routed_str_topic #452

@tigroo

Description

@tigroo

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> {

Metadata

Metadata

Assignees

Labels

RustRust code

Type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions