#[non_exhaustive]pub struct IcdRegistration {
pub node_id: u64,
pub check_in_node_id: u64,
pub monitored_subject: u64,
pub key: [u8; 16],
pub start_counter: u32,
}Expand description
A persisted ICD client registration — the controller registered itself as a
check-in client with the device node_id, and holds the shared key needed to
verify that device’s Check-In messages.
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 ICD device this registration is with.
check_in_node_id: u64The node id the ICD sends Check-Ins to (our commissioner node id).
monitored_subject: u64The subject the ICD monitors on our behalf (typically our node id).
key: [u8; 16]The 16-byte symmetric key protecting this device’s Check-In messages.
start_counter: u32The device’s ICDCounter at registration time — the floor for the
monotonicity (replay) check on inbound Check-Ins.
Implementations§
Trait Implementations§
Source§impl Clone for IcdRegistration
impl Clone for IcdRegistration
Source§fn clone(&self) -> IcdRegistration
fn clone(&self) -> IcdRegistration
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 moreSource§impl Debug for IcdRegistration
impl Debug for IcdRegistration
impl Eq for IcdRegistration
Source§impl PartialEq for IcdRegistration
impl PartialEq for IcdRegistration
impl StructuralPartialEq for IcdRegistration
Auto Trait Implementations§
impl Freeze for IcdRegistration
impl RefUnwindSafe for IcdRegistration
impl Send for IcdRegistration
impl Sync for IcdRegistration
impl Unpin for IcdRegistration
impl UnsafeUnpin for IcdRegistration
impl UnwindSafe for IcdRegistration
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