pub struct Dot11ProbeResp {
pub offset: usize,
}Expand description
802.11 Probe Response frame body.
Same fixed fields as Beacon: timestamp(8B) + beacon_interval(2B) + capability(2B).
Fields§
§offset: usizeImplementations§
Source§impl Dot11ProbeResp
impl Dot11ProbeResp
pub fn new(offset: usize) -> Self
Sourcepub fn timestamp(&self, buf: &[u8]) -> Result<u64, FieldError>
pub fn timestamp(&self, buf: &[u8]) -> Result<u64, FieldError>
Timestamp (8 bytes, little-endian).
Sourcepub fn beacon_interval(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn beacon_interval(&self, buf: &[u8]) -> Result<u16, FieldError>
Beacon interval in TUs, little-endian.
Sourcepub fn capability(&self, buf: &[u8]) -> Result<u16, FieldError>
pub fn capability(&self, buf: &[u8]) -> Result<u16, FieldError>
Capability information (2 bytes, little-endian).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length (fixed fields only).
Trait Implementations§
Source§impl Clone for Dot11ProbeResp
impl Clone for Dot11ProbeResp
Source§fn clone(&self) -> Dot11ProbeResp
fn clone(&self) -> Dot11ProbeResp
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 Dot11ProbeResp
impl RefUnwindSafe for Dot11ProbeResp
impl Send for Dot11ProbeResp
impl Sync for Dot11ProbeResp
impl Unpin for Dot11ProbeResp
impl UnsafeUnpin for Dot11ProbeResp
impl UnwindSafe for Dot11ProbeResp
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