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