pub struct InfoReport {
pub parameter: u16,
pub reports_to_follow: u8,
pub info: Vec<u8>,
}Expand description
Configuration Info Report (0x70 0x0d).
Fields§
§parameter: u16The parameter field.
reports_to_follow: u8The reports_to_follow field.
info: Vec<u8>The info field.
Implementations§
Source§impl InfoReport
impl InfoReport
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 InfoReport
impl Clone for InfoReport
Source§impl Debug for InfoReport
impl Debug for InfoReport
Source§impl Default for InfoReport
impl Default for InfoReport
impl Eq for InfoReport
Source§impl From<InfoReport> for Command
impl From<InfoReport> for Command
Source§fn from(c: InfoReport) -> Self
fn from(c: InfoReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InfoReport
impl PartialEq for InfoReport
impl StructuralPartialEq for InfoReport
Auto Trait Implementations§
impl Freeze for InfoReport
impl RefUnwindSafe for InfoReport
impl Send for InfoReport
impl Sync for InfoReport
impl Unpin for InfoReport
impl UnsafeUnpin for InfoReport
impl UnwindSafe for InfoReport
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