pub enum NestedInformationElementRepr {
TschSynchronization(TschSynchronizationRepr),
TschTimeslot(TschTimeslotRepr),
TschSlotframeAndLink(TschSlotframeAndLinkRepr),
ChannelHopping(ChannelHoppingRepr),
}
Expand description
A high-level representation of a MLME Payload Information Element.
Variants§
TschSynchronization(TschSynchronizationRepr)
TSCH Synchronization Information Element.
TschTimeslot(TschTimeslotRepr)
TSCH Timeslot Information Element.
TschSlotframeAndLink(TschSlotframeAndLinkRepr)
TSCH Slotframe and Link Information Element.
ChannelHopping(ChannelHoppingRepr)
Channel Hopping Information Element.
Implementations§
Source§impl NestedInformationElementRepr
impl NestedInformationElementRepr
Sourcepub fn parse(ie: &NestedInformationElement<&[u8]>) -> Result<Self>
pub fn parse(ie: &NestedInformationElement<&[u8]>) -> Result<Self>
Parse a Nested Information Element.
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
The buffer length required to emit the Nested Information Element.
Sourcepub fn inner_len(&self) -> usize
pub fn inner_len(&self) -> usize
The buffer length required to emit the inner part of the Nested Information Element.
Sourcepub fn emit(&self, w: &mut NestedInformationElement<&mut [u8]>)
pub fn emit(&self, w: &mut NestedInformationElement<&mut [u8]>)
Emit the Nested Information Element into a buffer.
Trait Implementations§
Source§impl Debug for NestedInformationElementRepr
impl Debug for NestedInformationElementRepr
Source§impl From<&NestedInformationElementRepr> for NestedSubId
impl From<&NestedInformationElementRepr> for NestedSubId
Source§fn from(value: &NestedInformationElementRepr) -> Self
fn from(value: &NestedInformationElementRepr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NestedInformationElementRepr
impl RefUnwindSafe for NestedInformationElementRepr
impl Send for NestedInformationElementRepr
impl Sync for NestedInformationElementRepr
impl Unpin for NestedInformationElementRepr
impl UnwindSafe for NestedInformationElementRepr
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