pub struct InformationElements<T: AsRef<[u8]>> { /* private fields */ }Expand description
IEEE 802.15.4 Information Element reader.
Implementations§
Source§impl<T: AsRef<[u8]>> InformationElements<T>
impl<T: AsRef<[u8]>> InformationElements<T>
Sourcepub fn new(data: T) -> Result<Self>
pub fn new(data: T) -> Result<Self>
Create a new InformationElements reader from a given buffer.
§Errors
Returns an error if the buffer is too short to contain the information elements.
Sourcepub fn new_unchecked(data: T) -> Self
pub fn new_unchecked(data: T) -> Self
Create a new InformationElements reader from a given buffer without
length checking.
Sourcepub fn header_information_elements(
&self,
) -> HeaderInformationElementsIterator<'_> ⓘ
pub fn header_information_elements( &self, ) -> HeaderInformationElementsIterator<'_> ⓘ
Returns an Iterator over HeaderInformationElement.
Sourcepub fn payload_information_elements(
&self,
) -> PayloadInformationElementsIterator<'_> ⓘ
pub fn payload_information_elements( &self, ) -> PayloadInformationElementsIterator<'_> ⓘ
Returns an Iterator over PayloadInformationElement.
Auto Trait Implementations§
impl<T> Freeze for InformationElements<T>where
T: Freeze,
impl<T> RefUnwindSafe for InformationElements<T>where
T: RefUnwindSafe,
impl<T> Send for InformationElements<T>where
T: Send,
impl<T> Sync for InformationElements<T>where
T: Sync,
impl<T> Unpin for InformationElements<T>where
T: Unpin,
impl<T> UnwindSafe for InformationElements<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