#[non_exhaustive]pub struct DeviceEntry {
pub node_id: u64,
pub peer_noc_public_key: [u8; 65],
pub resumption_record: Option<Vec<u8>>,
pub last_known_addr: Option<String>,
pub vendor_id: Option<u16>,
pub product_id: Option<u16>,
pub label: Option<String>,
}Expand description
A device commissioned onto a fabric.
#[non_exhaustive]: persisted record whose shape may grow (e.g. CAT tags,
typed resumption state); marking it keeps such additions non-breaking. Only
constructed inside matter-controller.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node_id: u64The device’s operational node ID on this fabric.
peer_noc_public_key: [u8; 65]The device’s NOC public key (SEC1 uncompressed, 0x04 || X || Y).
resumption_record: Option<Vec<u8>>Cached CASE resumption record (opaque bytes).
last_known_addr: Option<String>Last operational address we reached the device at (a discovery hint).
vendor_id: Option<u16>Device vendor id (BasicInformation 0x0028/0x0002), captured
best-effort after commissioning. None if the read did not complete.
product_id: Option<u16>Device product id (BasicInformation 0x0028/0x0004), captured
best-effort after commissioning. None if the read did not complete.
label: Option<String>Caller-supplied opaque label attached at commission() time. None
if the caller passed none.
Trait Implementations§
Source§impl Clone for DeviceEntry
impl Clone for DeviceEntry
Source§fn clone(&self) -> DeviceEntry
fn clone(&self) -> DeviceEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more