netherite 0.1.3

A tokio implementation of the Minecraft Protocol with derive macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Trait for packets that have
/// an associated ID. Usually
/// implemented alongside [`netherite::Serialize`]
pub trait PacketId {
    /// PacketId
    const ID: i32;
}

impl<T: PacketId> PacketId for &T {
    const ID: i32 = T::ID;
}