pub trait Packet: Debug {
const ID: i32;
const NAME: &'static str;
const SIDE: PacketSide;
const STATE: PacketState;
// Provided method
fn encode_with_id(&self, w: impl Write) -> Result<(), Error>
where Self: Encode { ... }
}
Expand description
Required Associated Constants§
const SIDE: PacketSide
const SIDE: PacketSide
The side this packet is intended for.
const STATE: PacketState
const STATE: PacketState
The state in which this packet is used.
Provided Methods§
Object Safety§
This trait is not object safe.