pub struct ReportDescriptorParser { /* private fields */ }Expand description
Parses Report Descriptors and produces descriptions of the reports they contain.
Implementations§
Source§impl ReportDescriptorParser
impl ReportDescriptorParser
Sourcepub fn parse(
report_descriptor: &[u8],
) -> Result<ReportDescriptor, ReportDescriptorError>
pub fn parse( report_descriptor: &[u8], ) -> Result<ReportDescriptor, ReportDescriptorError>
Parses the given report_descriptor byte slice and produces a ReportDescriptor structure that describes the reports defined by the ReportDescriptor, or an Error if the ReportDescriptor cannot be parsed.
Auto Trait Implementations§
impl Freeze for ReportDescriptorParser
impl RefUnwindSafe for ReportDescriptorParser
impl Send for ReportDescriptorParser
impl Sync for ReportDescriptorParser
impl Unpin for ReportDescriptorParser
impl UnwindSafe for ReportDescriptorParser
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