pub struct TschSynchronizationRepr {
pub absolute_slot_number: u64,
pub join_metric: u8,
}Expand description
A high-level representation of a TSCH Synchronization Nested Information Element.
Fields§
§absolute_slot_number: u64The absolute slot number (ASN).
join_metric: u8The join metric.
Implementations§
Source§impl TschSynchronizationRepr
impl TschSynchronizationRepr
Sourcepub fn parse(ie: &TschSynchronization<&[u8]>) -> Self
pub fn parse(ie: &TschSynchronization<&[u8]>) -> Self
Parse a TSCH Synchronization Information Element.
Sourcepub const fn buffer_len(&self) -> usize
pub const fn buffer_len(&self) -> usize
The buffer length required to emit the TSCH Synchronization Information Element.
Sourcepub fn emit(&self, ie: &mut TschSynchronization<&mut [u8]>)
pub fn emit(&self, ie: &mut TschSynchronization<&mut [u8]>)
Emit the TSCH Synchronization Information Element into a buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TschSynchronizationRepr
impl RefUnwindSafe for TschSynchronizationRepr
impl Send for TschSynchronizationRepr
impl Sync for TschSynchronizationRepr
impl Unpin for TschSynchronizationRepr
impl UnwindSafe for TschSynchronizationRepr
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