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