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