pub struct CapabilitiesReport {
pub zwave_software: bool,
pub command_class: bool,
pub version: bool,
}Expand description
Version Capabilities Report (0x86 0x16).
Fields§
§zwave_software: boolThe zwave_software field (bits 2..3).
command_class: boolThe command_class field (bits 1..2).
version: boolThe version field (bits 0..1).
Implementations§
Source§impl CapabilitiesReport
impl CapabilitiesReport
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for CapabilitiesReport
impl Clone for CapabilitiesReport
Source§impl Debug for CapabilitiesReport
impl Debug for CapabilitiesReport
Source§impl Default for CapabilitiesReport
impl Default for CapabilitiesReport
impl Eq for CapabilitiesReport
Source§impl From<CapabilitiesReport> for Command
impl From<CapabilitiesReport> for Command
Source§fn from(c: CapabilitiesReport) -> Self
fn from(c: CapabilitiesReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CapabilitiesReport
impl PartialEq for CapabilitiesReport
impl StructuralPartialEq for CapabilitiesReport
Auto Trait Implementations§
impl Freeze for CapabilitiesReport
impl RefUnwindSafe for CapabilitiesReport
impl Send for CapabilitiesReport
impl Sync for CapabilitiesReport
impl Unpin for CapabilitiesReport
impl UnsafeUnpin for CapabilitiesReport
impl UnwindSafe for CapabilitiesReport
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