pub struct SpecificGroupReport {
pub group: u8,
}Expand description
Association Specific Group Report (0x85 0x0c).
Fields§
§group: u8The group field.
Implementations§
Source§impl SpecificGroupReport
impl SpecificGroupReport
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 SpecificGroupReport
impl Clone for SpecificGroupReport
Source§impl Debug for SpecificGroupReport
impl Debug for SpecificGroupReport
Source§impl Default for SpecificGroupReport
impl Default for SpecificGroupReport
impl Eq for SpecificGroupReport
Source§impl From<SpecificGroupReport> for Command
impl From<SpecificGroupReport> for Command
Source§fn from(c: SpecificGroupReport) -> Self
fn from(c: SpecificGroupReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpecificGroupReport
impl PartialEq for SpecificGroupReport
impl StructuralPartialEq for SpecificGroupReport
Auto Trait Implementations§
impl Freeze for SpecificGroupReport
impl RefUnwindSafe for SpecificGroupReport
impl Send for SpecificGroupReport
impl Sync for SpecificGroupReport
impl Unpin for SpecificGroupReport
impl UnsafeUnpin for SpecificGroupReport
impl UnwindSafe for SpecificGroupReport
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