bebytes 3.0.2

A Rust library for serialization and deserialization of network structs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This test verifies that enums with data variants (non-unit variants)
// are rejected since BeBytes only supports simple enums.

use bebytes::BeBytes;

#[derive(BeBytes, Debug, PartialEq)]
enum DataVariants {
    Unit = 0,
    // Error: Data variants not supported
    Tuple(u32),
    Struct { field: u16 },
}

fn main() {}