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