pub struct NodeRecord {Show 14 fields
pub id: NodeId,
pub protocol: ProtocolInfo,
pub stage: InterviewStage,
pub security: Vec<SecurityClass>,
pub secure_ccs_known: bool,
pub manufacturer: Option<Manufacturer>,
pub firmware: Option<String>,
pub zwave_plus: Option<(u8, u8, u16, u16)>,
pub endpoints: BTreeMap<u8, Endpoint>,
pub wake_up_interval: Option<u32>,
pub neighbors: Vec<NodeId>,
pub name: Option<String>,
pub location: Option<String>,
pub dsk: Option<String>,
}Expand description
Everything the host stores about a node.
Fields§
§id: NodeIdNode id.
protocol: ProtocolInfoProtocol information.
stage: InterviewStageInterview progress.
security: Vec<SecurityClass>Granted security classes, highest first (empty: insecure).
secure_ccs_known: boolWhether the secure command class list is known.
manufacturer: Option<Manufacturer>Manufacturer identity.
firmware: Option<String>Firmware version (major.minor).
zwave_plus: Option<(u8, u8, u16, u16)>Z-Wave Plus role and node type, and the icons.
endpoints: BTreeMap<u8, Endpoint>Endpoints, 0 being the root device.
wake_up_interval: Option<u32>Wake-up interval configured, seconds.
neighbors: Vec<NodeId>Neighbors from the controller’s routing table.
name: Option<String>A name given by people.
location: Option<String>A location given by people.
dsk: Option<String>The DSK the node was included with (S2).
Implementations§
Source§impl NodeRecord
impl NodeRecord
Sourcepub fn highest_s2(&self) -> Option<SecurityClass>
pub fn highest_s2(&self) -> Option<SecurityClass>
The highest granted S2 class.
Sourcepub fn needs_security(&self, endpoint: u8, cc: u16) -> bool
pub fn needs_security(&self, endpoint: u8, cc: u16) -> bool
Whether a command class must be sent with security to this endpoint.
Trait Implementations§
Source§impl Clone for NodeRecord
impl Clone for NodeRecord
Source§impl Debug for NodeRecord
impl Debug for NodeRecord
Source§impl Default for NodeRecord
impl Default for NodeRecord
Source§impl<'de> Deserialize<'de> for NodeRecord
impl<'de> Deserialize<'de> for NodeRecord
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
impl Eq for NodeRecord
Source§impl PartialEq for NodeRecord
impl PartialEq for NodeRecord
Source§impl Serialize for NodeRecord
impl Serialize for NodeRecord
impl StructuralPartialEq for NodeRecord
Auto Trait Implementations§
impl Freeze for NodeRecord
impl RefUnwindSafe for NodeRecord
impl Send for NodeRecord
impl Sync for NodeRecord
impl Unpin for NodeRecord
impl UnsafeUnpin for NodeRecord
impl UnwindSafe for NodeRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.