Skip to main content

impl_enum_decode

Macro impl_enum_decode 

Source
macro_rules! impl_enum_decode {
    ($enum_type:ty) => { ... };
}
Expand description

Implements DecodeFromReadPrefix and DecodeFromRead for an enum type.

The enum must implement From<proto_packet::io::TagNumber>.