pub struct Dot11AssocResp {
pub offset: usize,
}Expand description
802.11 Association Response frame body.
Fixed fields: capability(2B) + status_code(2B) + AID(2B) = 6 bytes.
Followed by an IE chain.
Fields§
§offset: usizeImplementations§
Source§impl Dot11AssocResp
impl Dot11AssocResp
pub fn new(offset: usize) -> Self
Sourcepub fn capability(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn capability(&self, buf: &[u8]) -> Result<u16, FieldError>
Capability information (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§
Source§impl Clone for Dot11AssocResp
impl Clone for Dot11AssocResp
Source§fn clone(&self) -> Dot11AssocResp
fn clone(&self) -> Dot11AssocResp
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 moreAuto Trait Implementations§
impl Freeze for Dot11AssocResp
impl RefUnwindSafe for Dot11AssocResp
impl Send for Dot11AssocResp
impl Sync for Dot11AssocResp
impl Unpin for Dot11AssocResp
impl UnsafeUnpin for Dot11AssocResp
impl UnwindSafe for Dot11AssocResp
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