#[repr(C, packed(1))]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§
Source§impl Clone for MouseReport
impl Clone for MouseReport
Source§fn clone(&self) -> MouseReport
fn clone(&self) -> MouseReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MouseReport
impl Debug for MouseReport
Source§impl PartialEq for MouseReport
impl PartialEq for MouseReport
Source§impl Serialize for MouseReport
impl Serialize for MouseReport
Source§impl SerializedDescriptor for MouseReport
impl SerializedDescriptor for MouseReport
impl AsInputReport for MouseReport
impl Copy for MouseReport
impl Eq for MouseReport
impl StructuralPartialEq for MouseReport
Auto Trait Implementations§
impl Freeze for MouseReport
impl RefUnwindSafe for MouseReport
impl Send for MouseReport
impl Sync for MouseReport
impl Unpin for MouseReport
impl UnwindSafe for MouseReport
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