pub struct Dot11Action {
pub offset: usize,
}Expand description
802.11 Action frame body.
Fixed fields: category(1B) + variable action data.
Fields§
§offset: usizeImplementations§
Source§impl Dot11Action
impl Dot11Action
pub fn new(offset: usize) -> Self
Sourcepub fn action_code(&self, buf: &[u8]) -> Result<u8, FieldError>
pub fn action_code(&self, buf: &[u8]) -> Result<u8, FieldError>
Action code (1 byte, second byte of action frame body).
Sourcepub fn payload_offset(&self) -> usize
pub fn payload_offset(&self) -> usize
Payload offset (after category byte).
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Header length (just the category byte).
Trait Implementations§
Source§impl Clone for Dot11Action
impl Clone for Dot11Action
Source§fn clone(&self) -> Dot11Action
fn clone(&self) -> Dot11Action
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 Dot11Action
impl RefUnwindSafe for Dot11Action
impl Send for Dot11Action
impl Sync for Dot11Action
impl Unpin for Dot11Action
impl UnsafeUnpin for Dot11Action
impl UnwindSafe for Dot11Action
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