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