pub struct FragmentedPQFrame {
pub header: FragmentHeader,
pub cookie: Vec<u8>,
pub payload: Vec<u8>,
}Expand description
A single fragment of a fragmented PQ payload — this is what goes over the air.
Fields§
§header: FragmentHeaderFrame header carrying sequence ID, fragment index, and length metadata.
DoS-mitigation cookie: only populated on frag_index == 0.
HMAC-SHA384(ap_secret, station_mac || sequence_id) — 48 bytes.
Subsequent fragments carry all zeros here (cookie already validated).
Stored as Vec
payload: Vec<u8>The actual payload slice (≤ FRAG_PAYLOAD_MAX bytes).
Implementations§
Source§impl FragmentedPQFrame
impl FragmentedPQFrame
Sourcepub const FRAME_TYPE: u8 = 0x02
pub const FRAME_TYPE: u8 = 0x02
Frame type discriminant for FragmentedPQFrame (Stage 2 Quantization).
Trait Implementations§
Source§impl Clone for FragmentedPQFrame
impl Clone for FragmentedPQFrame
Source§fn clone(&self) -> FragmentedPQFrame
fn clone(&self) -> FragmentedPQFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FragmentedPQFrame
impl Debug for FragmentedPQFrame
Source§impl<'de> Deserialize<'de> for FragmentedPQFrame
impl<'de> Deserialize<'de> for FragmentedPQFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FragmentedPQFrame
impl RefUnwindSafe for FragmentedPQFrame
impl Send for FragmentedPQFrame
impl Sync for FragmentedPQFrame
impl Unpin for FragmentedPQFrame
impl UnsafeUnpin for FragmentedPQFrame
impl UnwindSafe for FragmentedPQFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more