pub struct IntervalReport {
pub seconds: u32,
pub node_id: u8,
}Expand description
Wake Up Interval Report (0x84 0x06).
Fields§
§seconds: u32The seconds field.
node_id: u8The node_id field.
Implementations§
Source§impl IntervalReport
impl IntervalReport
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 IntervalReport
impl Clone for IntervalReport
Source§impl Debug for IntervalReport
impl Debug for IntervalReport
Source§impl Default for IntervalReport
impl Default for IntervalReport
impl Eq for IntervalReport
Source§impl From<IntervalReport> for Command
impl From<IntervalReport> for Command
Source§fn from(c: IntervalReport) -> Self
fn from(c: IntervalReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IntervalReport
impl PartialEq for IntervalReport
impl StructuralPartialEq for IntervalReport
Auto Trait Implementations§
impl Freeze for IntervalReport
impl RefUnwindSafe for IntervalReport
impl Send for IntervalReport
impl Sync for IntervalReport
impl Unpin for IntervalReport
impl UnsafeUnpin for IntervalReport
impl UnwindSafe for IntervalReport
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