batman_robin/model/utils.rs
1/// Represents the possible types of values that can be sent as netlink attributes
2/// to the BATMAN-adv kernel module.
3///
4/// This enum is used when constructing generic netlink messages for BATMAN-adv.
5/// Each variant corresponds to a different type of payload that the kernel expects.
6#[derive(Debug, Clone)]
7pub enum AttrValueForSend {
8 /// 8-bit unsigned integer attribute.
9 U8(u8),
10
11 /// 16-bit unsigned integer attribute.
12 U16(u16),
13
14 /// 32-bit unsigned integer attribute.
15 U32(u32),
16
17 /// Raw bytes attribute.
18 Bytes(Vec<u8>),
19
20 /// UTF-8 string attribute.
21 String(String),
22}