pub struct CommandClassReport {
pub requested_cc: u8,
pub version: u8,
}Expand description
Version Command Class Report (0x86 0x14).
Fields§
§requested_cc: u8The requested_cc field.
version: u8The version field.
Implementations§
Source§impl CommandClassReport
impl CommandClassReport
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 CommandClassReport
impl Clone for CommandClassReport
Source§impl Debug for CommandClassReport
impl Debug for CommandClassReport
Source§impl Default for CommandClassReport
impl Default for CommandClassReport
impl Eq for CommandClassReport
Source§impl From<CommandClassReport> for Command
impl From<CommandClassReport> for Command
Source§fn from(c: CommandClassReport) -> Self
fn from(c: CommandClassReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandClassReport
impl PartialEq for CommandClassReport
impl StructuralPartialEq for CommandClassReport
Auto Trait Implementations§
impl Freeze for CommandClassReport
impl RefUnwindSafe for CommandClassReport
impl Send for CommandClassReport
impl Sync for CommandClassReport
impl Unpin for CommandClassReport
impl UnsafeUnpin for CommandClassReport
impl UnwindSafe for CommandClassReport
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