pub struct MouseInputDescriptor {
pub movement_x: Option<Axis>,
pub movement_y: Option<Axis>,
pub scroll_v: Option<Axis>,
pub scroll_h: Option<Axis>,
pub buttons: Option<Vec<u8>>,
pub position_x: Option<Axis>,
pub position_y: Option<Axis>,
/* private fields */
}
Expand description
Describes the format of the input report that will be sent from the mouse to the device.
Fields§
§movement_x: Option<Axis>
The range of relative X movement.
movement_y: Option<Axis>
The range of relative Y movement.
scroll_v: Option<Axis>
The range of relative vertical scroll.
scroll_h: Option<Axis>
The range of relative horizontal scroll.
This is a vector of ids for the mouse buttons.
position_x: Option<Axis>
The range of the position of X. The main use of position is from virtual mice like over VNC.
position_y: Option<Axis>
The range of the position of Y. The main use of position is from virtual mice like over VNC.
Trait Implementations§
Source§impl Clone for MouseInputDescriptor
impl Clone for MouseInputDescriptor
Source§fn clone(&self) -> MouseInputDescriptor
fn clone(&self) -> MouseInputDescriptor
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 moreSource§impl Debug for MouseInputDescriptor
impl Debug for MouseInputDescriptor
Source§impl<D: ResourceDialect> Decode<MouseInputDescriptor, D> for MouseInputDescriptor
impl<D: ResourceDialect> Decode<MouseInputDescriptor, D> for MouseInputDescriptor
Source§impl Default for MouseInputDescriptor
impl Default for MouseInputDescriptor
Source§fn default() -> MouseInputDescriptor
fn default() -> MouseInputDescriptor
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<MouseInputDescriptor, D> for &MouseInputDescriptor
impl<D: ResourceDialect> Encode<MouseInputDescriptor, D> for &MouseInputDescriptor
Source§impl PartialEq for MouseInputDescriptor
impl PartialEq for MouseInputDescriptor
Source§impl TypeMarker for MouseInputDescriptor
impl TypeMarker for MouseInputDescriptor
Source§type Owned = MouseInputDescriptor
type Owned = MouseInputDescriptor
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for MouseInputDescriptor
impl ValueTypeMarker for MouseInputDescriptor
Source§type Borrowed<'a> = &'a MouseInputDescriptor
type Borrowed<'a> = &'a MouseInputDescriptor
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for MouseInputDescriptor
impl StructuralPartialEq for MouseInputDescriptor
Auto Trait Implementations§
impl Freeze for MouseInputDescriptor
impl RefUnwindSafe for MouseInputDescriptor
impl Send for MouseInputDescriptor
impl Sync for MouseInputDescriptor
impl Unpin for MouseInputDescriptor
impl UnwindSafe for MouseInputDescriptor
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)