pub struct EndPointFindReport {
pub reports_to_follow: u8,
pub generic: u8,
pub specific: u8,
pub end_points: Vec<u8>,
}Expand description
Multi Channel End Point Find Report (0x60 0x0c).
Fields§
§reports_to_follow: u8The reports_to_follow field.
generic: u8The generic field.
specific: u8The specific field.
end_points: Vec<u8>The end_points field.
Implementations§
Source§impl EndPointFindReport
impl EndPointFindReport
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 EndPointFindReport
impl Clone for EndPointFindReport
Source§impl Debug for EndPointFindReport
impl Debug for EndPointFindReport
Source§impl Default for EndPointFindReport
impl Default for EndPointFindReport
impl Eq for EndPointFindReport
Source§impl From<EndPointFindReport> for Command
impl From<EndPointFindReport> for Command
Source§fn from(c: EndPointFindReport) -> Self
fn from(c: EndPointFindReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EndPointFindReport
impl PartialEq for EndPointFindReport
impl StructuralPartialEq for EndPointFindReport
Auto Trait Implementations§
impl Freeze for EndPointFindReport
impl RefUnwindSafe for EndPointFindReport
impl Send for EndPointFindReport
impl Sync for EndPointFindReport
impl Unpin for EndPointFindReport
impl UnsafeUnpin for EndPointFindReport
impl UnwindSafe for EndPointFindReport
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