protocol::define_packet_kind [] [src]

macro_rules! define_packet_kind {
    ( $ty:ident : $id_ty:ty { $( $packet_id:expr => $packet_ty:ident ),+ } ) => { ... };
}

Defines a packet kind enum.

You can use any type that implements Type as the packet ID.