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