pub struct ActivationReport {
pub manufacturer_id: u16,
pub firmware_id: u16,
pub checksum: u16,
pub target: u8,
pub status: u8,
pub hardware_version: Option<u8>,
}Expand description
Firmware Update Meta Data Activation Report (0x7a 0x09).
Fields§
§manufacturer_id: u16The manufacturer_id field.
firmware_id: u16The firmware_id field.
checksum: u16The checksum field.
target: u8The target field.
status: u8The status field.
hardware_version: Option<u8>The hardware_version field.
Implementations§
Source§impl ActivationReport
impl ActivationReport
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 ActivationReport
impl Clone for ActivationReport
Source§impl Debug for ActivationReport
impl Debug for ActivationReport
Source§impl Default for ActivationReport
impl Default for ActivationReport
impl Eq for ActivationReport
Source§impl From<ActivationReport> for Command
impl From<ActivationReport> for Command
Source§fn from(c: ActivationReport) -> Self
fn from(c: ActivationReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActivationReport
impl PartialEq for ActivationReport
impl StructuralPartialEq for ActivationReport
Auto Trait Implementations§
impl Freeze for ActivationReport
impl RefUnwindSafe for ActivationReport
impl Send for ActivationReport
impl Sync for ActivationReport
impl Unpin for ActivationReport
impl UnsafeUnpin for ActivationReport
impl UnwindSafe for ActivationReport
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