make packet repr(C)
Some checks failed
Rust / build (pull_request) Failing after 1m0s

This commit is contained in:
Vinzenz Schroeter 2025-04-12 11:16:48 +02:00
parent ff56215c06
commit e985140417

View file

@ -33,6 +33,7 @@ use std::{mem::size_of, num::TryFromIntError};
///
/// Because the meaning of most fields depend on the command, there are no speaking names for them.
#[derive(Copy, Clone, Debug, PartialEq, Default)]
#[repr(C)]
pub struct Header {
/// The first two bytes specify which command this packet represents.
pub command_code: u16,