Derive Macro blaze_pk::PacketComponent
source · #[derive(PacketComponent)]
{
// Attributes available to this derive:
#[command]
}
Expand description
Re-exports for derive macros Macro for deriving a component any enum that wants to implement PacketComponent must also implement Debug, Hash, PartialEq, and Eq these traits are required for routing
use blaze_pk::{PacketComponent}
#[derive(Debug, Hash, PartialEq, Eq, PacketComponents)]
pub enum Component1 {
#[command(target = 0x14)]
Value,
#[command(target = 0x14, notify)]
NotifyValue,
}