#[repr(C)]pub struct MouseReport {
pub rel_x: Int32,
pub rel_y: Int32,
pub rel_hscroll: Int32,
pub rel_vscroll: Int32,
pub pressed_buttons: Uint32,
}Expand description
The wire type corresponding to MouseReport.
Fields§
§rel_x: Int32§rel_y: Int32§rel_hscroll: Int32§rel_vscroll: Int32Trait 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 moreSource§impl Constrained for MouseReport
impl Constrained for MouseReport
Source§impl Debug for MouseReport
impl Debug for MouseReport
Source§impl<___D> Decode<___D> for MouseReportwhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for MouseReportwhere
___D: InternalHandleDecoder + ?Sized,
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, T0, T1, T2, T3, T4> Encode<MouseReport, ___E> for MouseReport<T0, T1, T2, T3, T4>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Int32, ___E>,
T1: Encode<Int32, ___E>,
T2: Encode<Int32, ___E>,
T3: Encode<Int32, ___E>,
T4: Encode<Uint32, ___E>,
impl<___E, T0, T1, T2, T3, T4> Encode<MouseReport, ___E> for MouseReport<T0, T1, T2, T3, T4>where
___E: InternalHandleEncoder + ?Sized,
T0: Encode<Int32, ___E>,
T1: Encode<Int32, ___E>,
T2: Encode<Int32, ___E>,
T3: Encode<Int32, ___E>,
T4: Encode<Uint32, ___E>,
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 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 IntoNatural for MouseReport
impl IntoNatural for MouseReport
Source§type Natural = MouseReport
type Natural = MouseReport
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for MouseReport
impl Wire for MouseReport
Source§type Narrowed<'de> = MouseReport
type Narrowed<'de> = MouseReport
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<Self>)
fn zero_padding(out_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
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> 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]