1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// The Buf trait represents a packet buffer.
/// A trait is used so that an implementation can be provided that enables building and testing packet
/// pipelines without needing the AF_XDP infrastructure.
/*
pub trait BufConst<T, const N: usize> where T: std::default::Default {
fn get_data(&self) -> &[u8; N];
fn get_data_mut(&mut self) -> &mut [u8; N];
fn get_len(&self) -> u16;
fn get_user(&self) -> &T;
fn get_user_mut(&mut self) -> &mut T;
}
*/