pub struct IntervalGet {}Expand description
Wake Up Interval Get (0x84 0x05).
Implementations§
Source§impl IntervalGet
impl IntervalGet
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 IntervalGet
impl Clone for IntervalGet
Source§impl Debug for IntervalGet
impl Debug for IntervalGet
Source§impl Default for IntervalGet
impl Default for IntervalGet
impl Eq for IntervalGet
Source§impl From<IntervalGet> for Command
impl From<IntervalGet> for Command
Source§fn from(c: IntervalGet) -> Self
fn from(c: IntervalGet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IntervalGet
impl PartialEq for IntervalGet
impl StructuralPartialEq for IntervalGet
Auto Trait Implementations§
impl Freeze for IntervalGet
impl RefUnwindSafe for IntervalGet
impl Send for IntervalGet
impl Sync for IntervalGet
impl Unpin for IntervalGet
impl UnsafeUnpin for IntervalGet
impl UnwindSafe for IntervalGet
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