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