Struct usbd_hid::descriptor::MouseReport
source · [−]#[repr(C, packed)]pub struct MouseReport {
pub buttons: u8,
pub x: i8,
pub y: i8,
pub wheel: i8,
pub pan: i8,
}
Expand description
MouseReport describes a report and its companion descriptor than can be used to send mouse movements and button presses to a host.
Fields
x: i8
y: i8
wheel: i8
pan: i8
Trait Implementations
sourceimpl Clone for MouseReport
impl Clone for MouseReport
sourcefn clone(&self) -> MouseReport
fn clone(&self) -> MouseReport
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MouseReport
impl Debug for MouseReport
sourceimpl Serialize for MouseReport
impl Serialize for MouseReport
sourceimpl SerializedDescriptor for MouseReport
impl SerializedDescriptor for MouseReport
impl AsInputReport for MouseReport
impl Copy for MouseReport
Auto Trait Implementations
impl RefUnwindSafe for MouseReport
impl Send for MouseReport
impl Sync for MouseReport
impl Unpin for MouseReport
impl UnwindSafe for MouseReport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more