pub struct FastLinkFrame {
pub magic: [u8; 4],
pub version: u8,
pub frame_type: u8,
pub x25519_public_key: [u8; 32],
pub station_mac: [u8; 6],
}Expand description
WPA-Next Stage 1 — Discovery frame. Transmitted by the Station; received by the Access Point.
Fields§
§magic: [u8; 4]Protocol magic bytes: b“WPAN“ — validates frame type on receipt.
version: u8Protocol version (currently 1).
frame_type: u8Frame type discriminant: 0x01 = FastLinkFrame.
x25519_public_key: [u8; 32]Station’s ephemeral X25519 public key (32 bytes). Safe to transmit in plaintext — this is a Diffie-Hellman public value.
station_mac: [u8; 6]Station’s MAC address (used as cookie input to bind the handshake).
Implementations§
Source§impl FastLinkFrame
impl FastLinkFrame
Sourcepub const FRAME_TYPE: u8 = 0x01
pub const FRAME_TYPE: u8 = 0x01
Frame type discriminant for FastLinkFrame (Stage 1 Discovery).
Trait Implementations§
Source§impl Clone for FastLinkFrame
impl Clone for FastLinkFrame
Source§fn clone(&self) -> FastLinkFrame
fn clone(&self) -> FastLinkFrame
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 FastLinkFrame
impl Debug for FastLinkFrame
Source§impl<'de> Deserialize<'de> for FastLinkFrame
impl<'de> Deserialize<'de> for FastLinkFrame
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 FastLinkFrame
impl RefUnwindSafe for FastLinkFrame
impl Send for FastLinkFrame
impl Sync for FastLinkFrame
impl Unpin for FastLinkFrame
impl UnsafeUnpin for FastLinkFrame
impl UnwindSafe for FastLinkFrame
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