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