pub struct Mouse;Expand description
Boot-compatible mouse: send a report for every movement or button change, and
send MouseReport::default once the movement has been reported.
Implementations§
Trait Implementations§
Source§impl<B: UsbBus> HidDevice<B> for Mouse
impl<B: UsbBus> HidDevice<B> for Mouse
Source§fn get_report(
&mut self,
_report_type: ReportType,
_report_id: u8,
_buf: &mut [u8],
) -> Option<usize>
fn get_report( &mut self, _report_type: ReportType, _report_id: u8, _buf: &mut [u8], ) -> Option<usize>
Get Report — copy the report selected by report_type and report_id
into buf and return its length, including the report ID byte when the
spec declares report IDs. Read moreSource§fn set_report(
&mut self,
_report_type: ReportType,
_report_id: u8,
_data: &[u8],
) -> bool
fn set_report( &mut self, _report_type: ReportType, _report_id: u8, _data: &[u8], ) -> bool
Set Report — handle a report written by the host. Read moreSource§fn output_report(&mut self, _report_id: u8, _data: &[u8])
fn output_report(&mut self, _report_id: u8, _data: &[u8])
Output report received on the interrupt OUT endpoint. Read more
Source§fn deconfigure(&mut self)
fn deconfigure(&mut self)
Called when the host de-configures the device.
Source§fn poll(&mut self, _input: &EndpointIn<'_, B>)
fn poll(&mut self, _input: &EndpointIn<'_, B>)
Called on every device poll while configured. Read more
Auto Trait Implementations§
impl Forget for Mouse
impl Freeze for Mouse
impl Move for Mouse
impl RefUnwindSafe for Mouse
impl Send for Mouse
impl Sync for Mouse
impl Unpin for Mouse
impl UnsafeUnpin for Mouse
impl UnwindSafe for Mouse
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