Struct MouseReport
#[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§
§impl Clone for MouseReport
impl Clone for MouseReport
§fn clone(&self) -> MouseReport
fn clone(&self) -> MouseReport
Returns a copy 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 more§impl Debug for MouseReport
impl Debug for MouseReport
§impl PartialEq for MouseReport
impl PartialEq for MouseReport
§impl Serialize for MouseReport
impl Serialize for MouseReport
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
§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