pub struct Store {
pub iv_index: u32,
pub seq: u32,
pub address: u16,
pub net_keys: Vec<(u16, HexKey)>,
pub app_keys: Vec<(u16, u16, HexKey)>,
pub device_key: Option<HexKey>,
pub nodes: Vec<NodeRecord>,
pub bindings: Vec<(u16, u16, u16)>,
pub onoff: bool,
}Expand description
What a mesh instance keeps.
Fields§
§iv_index: u32The IV index.
seq: u32The next sequence number (persisted ahead in blocks).
address: u16Our primary element address (0 while unprovisioned).
net_keys: Vec<(u16, HexKey)>Network keys: index, key.
app_keys: Vec<(u16, u16, HexKey)>Application keys: index, bound network key index, key.
device_key: Option<HexKey>Our device key (node role).
nodes: Vec<NodeRecord>Provisioned nodes (provisioner role).
bindings: Vec<(u16, u16, u16)>Model to application key bindings (node role): element, model, app index.
onoff: boolThe Generic OnOff Server’s state (node role).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Store
impl<'de> Deserialize<'de> for Store
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Store
impl Freeze for Store
impl Move for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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