pub struct Dot11AssocReq {
pub offset: usize,
}Expand description
802.11 Association Request frame body.
Fixed fields: capability(2B) + listen_interval(2B) = 4 bytes.
Followed by an IE chain.
Fields§
§offset: usizeImplementations§
Source§impl Dot11AssocReq
impl Dot11AssocReq
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 listen_interval(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn listen_interval(&self, buf: &[u8]) -> Result<u16, FieldError>
Listen interval (little-endian u16).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length.
Trait Implementations§
Source§impl Clone for Dot11AssocReq
impl Clone for Dot11AssocReq
Source§fn clone(&self) -> Dot11AssocReq
fn clone(&self) -> Dot11AssocReq
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 Dot11AssocReq
impl RefUnwindSafe for Dot11AssocReq
impl Send for Dot11AssocReq
impl Sync for Dot11AssocReq
impl Unpin for Dot11AssocReq
impl UnsafeUnpin for Dot11AssocReq
impl UnwindSafe for Dot11AssocReq
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