Skip to main content

InputReport

Struct InputReport 

Source
pub struct InputReport<T0, T1, T2, T3, T4, T5, T6, T7> {
    pub event_time: T0,
    pub keyboard: T1,
    pub media_buttons: T2,
    pub mouse: T3,
    pub stylus: T4,
    pub touchscreen: T5,
    pub sensor: T6,
    pub trace_id: T7,
}
Expand description

The generic type corresponding to InputReport.

Fields§

§event_time: T0§keyboard: T1§media_buttons: T2§mouse: T3§stylus: T4§touchscreen: T5§sensor: T6§trace_id: T7

Trait Implementations§

Source§

impl<___E, T0, T1, T2, T3, T4, T5, T6, T7> Encode<InputReport<'static>, ___E> for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>
where ___E: InternalHandleEncoder + Encoder + ?Sized, T0: Encode<Uint64, ___E>, T1: Encode<Box<'static, KeyboardReport<'static>>, ___E>, T2: Encode<Box<'static, MediaButtonsReport>, ___E>, T3: Encode<Box<'static, MouseReport>, ___E>, T4: Encode<Box<'static, StylusReport>, ___E>, T5: Encode<Box<'static, TouchscreenReport<'static>>, ___E>, T6: Encode<SensorReport<'static>, ___E>, T7: Encode<Uint64, ___E>,

Source§

fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<InputReport<'static>>, _: (), ) -> Result<(), EncodeError>

Encodes this value into an encoder and output.
§

const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _

Whether the conversion from Self to W is equivalent to copying the raw bytes of Self. Read more

Auto Trait Implementations§

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Freeze for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>
where T0: Freeze, T1: Freeze, T2: Freeze, T3: Freeze, T4: Freeze, T5: Freeze, T6: Freeze, T7: Freeze,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> RefUnwindSafe for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Send for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>
where T0: Send, T1: Send, T2: Send, T3: Send, T4: Send, T5: Send, T6: Send, T7: Send,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Sync for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>
where T0: Sync, T1: Sync, T2: Sync, T3: Sync, T4: Sync, T5: Sync, T6: Sync, T7: Sync,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> Unpin for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>
where T0: Unpin, T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin, T5: Unpin, T6: Unpin, T7: Unpin,

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> UnsafeUnpin for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>

§

impl<T0, T1, T2, T3, T4, T5, T6, T7> UnwindSafe for InputReport<T0, T1, T2, T3, T4, T5, T6, T7>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> InstanceFromServiceTransport<T> for T

§

fn from_service_transport(handle: T) -> T

Converts the given service transport handle of type T to [Self]
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<E> RunsTransport<Mpsc> for E

§

impl<E> RunsTransport<Mpsc> for E
where E: RunsTransport<Mpsc>,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.