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

pub use self::{builder::*, fixed_parameters::*};
use super::*;

pub struct DeauthenticationFrame<'a> {
    bytes: Cow<'a, [u8]>,
}

impl<'a> DeauthenticationFrame<'a> {
    pub fn new<T: Into<Cow<'a, [u8]>>>(bytes: T) -> Self {
        Self {
            bytes: bytes.into(),
        }
    }
}
impl FrameTrait for DeauthenticationFrame<'_> {
    fn bytes(&self) -> &[u8] {
        self.bytes.as_ref()
    }
}
impl FragmentSequenceTrait for DeauthenticationFrame<'_> {}
impl ManagementFrameTrait for DeauthenticationFrame<'_> {}
impl DeauthenticationFixedParametersTrait for DeauthenticationFrame<'_> {}