Open pulsastrix opened 2 months ago
Apparently, one possible way of implementing this could also be replacing num_derive
with num_enum
, which seems to be the more widely used crate for this purpose anyways.
num_enum
allows creating a variant that captures all other cases using the #[num_enum(catch_all)]
attribute.
_Originally posted by @JKRhb in https://github.com/namib-project/libcoap-rs/pull/15#discussion_r1662262582_