pub trait PacketConstruct {
// Required method
fn construct(&self) -> Vec<u8> ⓘ;
}Expand description
Trait for packet construction
Implemented by packet types that can be serialized into bytes for transmission. The constructed packet includes the complete protocol header and payload.