pub struct TschTimeslotRepr {
pub id: u8,
}Expand description
A high-level representation of a TSCH Timeslot Nested Information Element.
Fields§
§id: u8The timeslot ID.
Implementations§
Source§impl TschTimeslotRepr
impl TschTimeslotRepr
Sourcepub fn parse(ie: &TschTimeslot<&[u8]>) -> Self
pub fn parse(ie: &TschTimeslot<&[u8]>) -> Self
Parse a TSCH Timeslot Information Element.
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
The buffer length required to emit the TSCH Timeslot Information Element.
Sourcepub fn emit(&self, ie: &mut TschTimeslot<&mut [u8]>)
pub fn emit(&self, ie: &mut TschTimeslot<&mut [u8]>)
Emit the TSCH Timeslot Information Element into a buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TschTimeslotRepr
impl RefUnwindSafe for TschTimeslotRepr
impl Send for TschTimeslotRepr
impl Sync for TschTimeslotRepr
impl Unpin for TschTimeslotRepr
impl UnwindSafe for TschTimeslotRepr
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