pub enum Tlv<'a> {
Show 18 variants
SourceAddress(u16),
Mode(u8),
Timeout(u32),
Challenge([u8; 8]),
Response([u8; 8]),
LinkLayerFrameCounter(u32),
MleFrameCounter(u32),
Address16(u16),
LeaderData {
partition_id: u32,
weighting: u8,
data_version: u8,
stable_data_version: u8,
leader_router_id: u8,
},
NetworkData(&'a [u8]),
TlvRequest(&'a [u8]),
ScanMask(u8),
Connectivity {
parent_priority: u8,
link_quality_3: u8,
link_quality_2: u8,
link_quality_1: u8,
leader_cost: u8,
id_sequence: u8,
active_routers: u8,
sed_buffer_size: Option<u16>,
sed_datagram_count: Option<u8>,
},
LinkMargin(u8),
Status(u8),
Version(u16),
ActiveOperationalDataset(&'a [u8]),
PendingOperationalDataset(&'a [u8]),
}
Expand description
Type-Length-Value structure.
Variants§
SourceAddress(u16)
Mode(u8)
Timeout(u32)
Challenge([u8; 8])
Response([u8; 8])
LinkLayerFrameCounter(u32)
MleFrameCounter(u32)
Address16(u16)
LeaderData
Fields
NetworkData(&'a [u8])
TlvRequest(&'a [u8])
ScanMask(u8)
Connectivity
Fields
LinkMargin(u8)
Status(u8)
Version(u16)
ActiveOperationalDataset(&'a [u8])
PendingOperationalDataset(&'a [u8])
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Tlv<'a>
impl<'a> RefUnwindSafe for Tlv<'a>
impl<'a> Send for Tlv<'a>
impl<'a> Sync for Tlv<'a>
impl<'a> Unpin for Tlv<'a>
impl<'a> UnwindSafe for Tlv<'a>
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