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