pub struct DeviceSpecificGet {
pub device_id_type: u8,
}Expand description
Manufacturer Specific Device Specific Get (0x72 0x06).
Fields§
§device_id_type: u8The device_id_type field (bits 0..3).
Implementations§
Source§impl DeviceSpecificGet
impl DeviceSpecificGet
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 DeviceSpecificGet
impl Clone for DeviceSpecificGet
Source§impl Debug for DeviceSpecificGet
impl Debug for DeviceSpecificGet
Source§impl Default for DeviceSpecificGet
impl Default for DeviceSpecificGet
impl Eq for DeviceSpecificGet
Source§impl From<DeviceSpecificGet> for Command
impl From<DeviceSpecificGet> for Command
Source§fn from(c: DeviceSpecificGet) -> Self
fn from(c: DeviceSpecificGet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceSpecificGet
impl PartialEq for DeviceSpecificGet
impl StructuralPartialEq for DeviceSpecificGet
Auto Trait Implementations§
impl Freeze for DeviceSpecificGet
impl RefUnwindSafe for DeviceSpecificGet
impl Send for DeviceSpecificGet
impl Sync for DeviceSpecificGet
impl Unpin for DeviceSpecificGet
impl UnsafeUnpin for DeviceSpecificGet
impl UnwindSafe for DeviceSpecificGet
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