pub struct Dot11ReassocReq {
pub offset: usize,
}Expand description
802.11 Reassociation Request frame body.
Fixed fields: capability(2B) + listen_interval(2B) + current_ap(6B) = 10 bytes. Followed by an IE chain.
Fields§
§offset: usizeImplementations§
Source§impl Dot11ReassocReq
impl Dot11ReassocReq
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 current_ap(&self, buf: &[u8]) -> Result<MacAddress, FieldError>
pub fn current_ap(&self, buf: &[u8]) -> Result<MacAddress, FieldError>
Current AP MAC address (6 bytes).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length.
Trait Implementations§
Source§impl Clone for Dot11ReassocReq
impl Clone for Dot11ReassocReq
Source§fn clone(&self) -> Dot11ReassocReq
fn clone(&self) -> Dot11ReassocReq
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 Dot11ReassocReq
impl RefUnwindSafe for Dot11ReassocReq
impl Send for Dot11ReassocReq
impl Sync for Dot11ReassocReq
impl Unpin for Dot11ReassocReq
impl UnsafeUnpin for Dot11ReassocReq
impl UnwindSafe for Dot11ReassocReq
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