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
mod fixed_parameters;

pub use self::fixed_parameters::*;
use super::*;

pub struct BeaconFrame<'a> {
    bytes: &'a [u8],
}

impl<'a> BeaconFrame<'a> {
    pub fn new(bytes: &'a [u8]) -> Self {
        Self { bytes }
    }
}

impl FrameTrait for BeaconFrame<'_> {
    fn bytes(&self) -> &[u8] {
        self.bytes
    }
}
impl FragmentSequenceTrait for BeaconFrame<'_> {}
impl ManagementFrameTrait for BeaconFrame<'_> {}
impl BeaconFixedParametersTrait for BeaconFrame<'_> {}
impl TaggedParametersTrait for BeaconFrame<'_> {
    const TAGGED_PARAMETERS_START: usize = 36;
}