Struct grubbnet::packet::PacketHeader
source · pub struct PacketHeader {
pub size: u16,
pub id: u8,
}
Expand description
PacketHeader The header included with every packet. Contains the packet body size and packet id.
Fields§
§size: u16
§id: u8
Trait Implementations§
source§impl Clone for PacketHeader
impl Clone for PacketHeader
source§fn clone(&self) -> PacketHeader
fn clone(&self) -> PacketHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more