#[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>,
}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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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; typed in M8.2).
last_known_addr: Option<String>Last operational address we reached the device at (a discovery hint).
Trait Implementations§
Source§impl Clone for DeviceEntry
impl Clone for DeviceEntry
Source§fn clone(&self) -> DeviceEntry
fn clone(&self) -> DeviceEntry
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 DeviceEntry
impl RefUnwindSafe for DeviceEntry
impl Send for DeviceEntry
impl Sync for DeviceEntry
impl Unpin for DeviceEntry
impl UnsafeUnpin for DeviceEntry
impl UnwindSafe for DeviceEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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