pub struct Dot11Auth {
pub offset: usize,
}Expand description
802.11 Authentication frame body.
Fixed fields: auth_algo(2B) + auth_seq(2B) + status_code(2B) = 6 bytes.
May be followed by IEs (e.g., challenge text for shared key auth).
Fields§
§offset: usizeImplementations§
Source§impl Dot11Auth
impl Dot11Auth
pub fn new(offset: usize) -> Self
Sourcepub fn algo(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn algo(&self, buf: &[u8]) -> Result<u16, FieldError>
Authentication algorithm number (little-endian u16).
Sourcepub fn seqnum(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn seqnum(&self, buf: &[u8]) -> Result<u16, FieldError>
Authentication sequence number (little-endian u16).
Sourcepub fn status_code(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn status_code(&self, buf: &[u8]) -> Result<u16, FieldError>
Status code (little-endian u16).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dot11Auth
impl RefUnwindSafe for Dot11Auth
impl Send for Dot11Auth
impl Sync for Dot11Auth
impl Unpin for Dot11Auth
impl UnsafeUnpin for Dot11Auth
impl UnwindSafe for Dot11Auth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more