#[repr(C)]pub struct MouseReport {
pub rel_x: i32,
pub rel_y: i32,
pub rel_hscroll: i32,
pub rel_vscroll: i32,
pub pressed_buttons: u32,
}Fields§
§rel_x: i32§rel_y: i32§rel_hscroll: i32§rel_vscroll: i32Trait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseReport
Source§impl Debug for MouseReport
impl Debug for MouseReport
Source§impl<___E> Encode<MouseReport, ___E> for MouseReportwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<MouseReport, ___E> for MouseReportwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, MouseReport>
const COPY_OPTIMIZATION: CopyOptimization<Self, MouseReport>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<MouseReport>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<MouseReport>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<'a, ___E> Encode<MouseReport, ___E> for &'a MouseReportwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<MouseReport, ___E> for &'a MouseReportwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<MouseReport>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<MouseReport>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<Box<'static, MouseReport>, ___E> for MouseReport
impl<___E> EncodeOption<Box<'static, MouseReport>, ___E> for MouseReport
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, MouseReport>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, MouseReport>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<Box<'static, MouseReport>, ___E> for &'a MouseReport
impl<'a, ___E> EncodeOption<Box<'static, MouseReport>, ___E> for &'a MouseReport
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, MouseReport>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, MouseReport>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for MouseReport
Source§impl FromWire<MouseReport> for MouseReport
impl FromWire<MouseReport> for MouseReport
Source§const COPY_OPTIMIZATION: CopyOptimization<MouseReport, Self>
const COPY_OPTIMIZATION: CopyOptimization<MouseReport, Self>
Source§fn from_wire(wire: MouseReport) -> Self
fn from_wire(wire: MouseReport) -> Self
Converts the given owned value to this type.
Source§impl FromWireRef<MouseReport> for MouseReport
impl FromWireRef<MouseReport> for MouseReport
Source§fn from_wire_ref(wire: &MouseReport) -> Self
fn from_wire_ref(wire: &MouseReport) -> Self
Converts the given reference to this type.
Source§impl Hash for MouseReport
impl Hash for MouseReport
Source§impl Ord for MouseReport
impl Ord for MouseReport
Source§fn cmp(&self, other: &MouseReport) -> Ordering
fn cmp(&self, other: &MouseReport) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MouseReport
impl PartialEq for MouseReport
Source§impl PartialOrd for MouseReport
impl PartialOrd 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]