renames, add documentation headers

This commit is contained in:
Vinzenz Schroeter 2024-05-12 01:30:55 +02:00
parent 9dc13861df
commit df8c1249c4
9 changed files with 175 additions and 21 deletions

View file

@ -1,8 +1,11 @@
/// A raw header. Should probably not be used directly.
#[derive(Debug)]
pub struct Header(pub u16, pub u16, pub u16, pub u16, pub u16);
/// The raw payload. Should probably not be used directly.
pub type Payload = Vec<u8>;
/// The raw packet. Should probably not be used directly.
#[derive(Debug)]
pub struct Packet(pub Header, pub Payload);