Macro protocol::define_packet_kind
source · macro_rules! define_packet_kind {
( $ty:ident : $id_ty:ty { $( $packet_id:expr => $packet_ty:ident ),+ } ) => { ... };
}
Expand description
Defines a packet kind enum.
You can use any type that implements Parcel
as the packet ID.