pub struct EndPointReport {
pub dynamic: bool,
pub identical: bool,
pub individual_end_points: u8,
pub aggregated_end_points: Option<u8>,
}Expand description
Multi Channel End Point Report (0x60 0x08).
Fields§
§dynamic: boolThe dynamic field (bits 7..8).
identical: boolThe identical field (bits 6..7).
individual_end_points: u8The individual_end_points field (bits 0..7).
aggregated_end_points: Option<u8>The aggregated_end_points field (bits 0..7).
Implementations§
Source§impl EndPointReport
impl EndPointReport
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 EndPointReport
impl Clone for EndPointReport
Source§impl Debug for EndPointReport
impl Debug for EndPointReport
Source§impl Default for EndPointReport
impl Default for EndPointReport
impl Eq for EndPointReport
Source§impl From<EndPointReport> for Command
impl From<EndPointReport> for Command
Source§fn from(c: EndPointReport) -> Self
fn from(c: EndPointReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EndPointReport
impl PartialEq for EndPointReport
impl StructuralPartialEq for EndPointReport
Auto Trait Implementations§
impl Freeze for EndPointReport
impl RefUnwindSafe for EndPointReport
impl Send for EndPointReport
impl Sync for EndPointReport
impl Unpin for EndPointReport
impl UnsafeUnpin for EndPointReport
impl UnwindSafe for EndPointReport
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