pub struct SuperframeSpecification<T: AsRef<[u8]>> { /* private fields */ }Expand description
A reader/writer for the IEEE 802.15.4 Superframe Specification Header Information Element.
Implementations§
Source§impl<T: AsRef<[u8]>> SuperframeSpecification<T>
impl<T: AsRef<[u8]>> SuperframeSpecification<T>
Sourcepub fn new_unchecked(buffer: T) -> Self
pub fn new_unchecked(buffer: T) -> Self
Create a new [#name] reader/writer from a given buffer without length checking.
Sourcepub fn beacon_order(&self) -> BeaconOrder
pub fn beacon_order(&self) -> BeaconOrder
Return the beacon order field value.
Sourcepub fn superframe_order(&self) -> SuperframeOrder
pub fn superframe_order(&self) -> SuperframeOrder
Return the superframe order field value.
Sourcepub fn final_cap_slot(&self) -> u8
pub fn final_cap_slot(&self) -> u8
Return the final cap slot field value.
Sourcepub fn battery_life_extension(&self) -> bool
pub fn battery_life_extension(&self) -> bool
Return the battery life extension field value.
Sourcepub fn pan_coordinator(&self) -> bool
pub fn pan_coordinator(&self) -> bool
Return the PAN coordinator field value.
Sourcepub fn association_permit(&self) -> bool
pub fn association_permit(&self) -> bool
Return the association permit field value.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SuperframeSpecification<T>where
T: Freeze,
impl<T> RefUnwindSafe for SuperframeSpecification<T>where
T: RefUnwindSafe,
impl<T> Send for SuperframeSpecification<T>where
T: Send,
impl<T> Sync for SuperframeSpecification<T>where
T: Sync,
impl<T> Unpin for SuperframeSpecification<T>where
T: Unpin,
impl<T> UnwindSafe for SuperframeSpecification<T>where
T: UnwindSafe,
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