pub struct ThreadDataset {
pub network_name: String,
pub channel: u8,
pub pan_id: u16,
pub ext_pan_id: [u8; 8],
pub network_key: [u8; 16],
}Expand description
A Thread operational dataset — the credentials an accessory needs to join a specific Thread network.
Obtain these from your Thread border router. With OpenThread’s ot-ctl:
networkname, channel, panid, extpanid, networkkey.
Fields§
§network_name: StringThe Thread network name (e.g. "OpenThread-89d7").
channel: u8The IEEE 802.15.4 channel.
pan_id: u16The 16-bit PAN ID.
ext_pan_id: [u8; 8]The 8-byte Extended PAN ID (big-endian, as ot-ctl extpanid prints it).
network_key: [u8; 16]The 16-byte Thread network key. Secret — never log or persist it.
Trait Implementations§
Source§impl Clone for ThreadDataset
impl Clone for ThreadDataset
Source§fn clone(&self) -> ThreadDataset
fn clone(&self) -> ThreadDataset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThreadDataset
impl RefUnwindSafe for ThreadDataset
impl Send for ThreadDataset
impl Sync for ThreadDataset
impl Unpin for ThreadDataset
impl UnsafeUnpin for ThreadDataset
impl UnwindSafe for ThreadDataset
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