pub struct MouseDeviceInfo {
pub id: Option<u32>,
pub scroll_v_range: Option<Axis>,
pub scroll_h_range: Option<Axis>,
pub buttons: Option<Vec<u8>>,
pub relative_motion_range: Option<[Axis; 2]>,
/* private fields */
}
Expand description
Information about a device that issues a mouse event stream.
Fields§
§id: Option<u32>
An identifier for the mouse device that issues a mouse event stream. Required.
scroll_v_range: Option<Axis>
Range of vertical scroll values issued by the device.
scroll_h_range: Option<Axis>
Range of horizontal scroll values issued by the device.
Button identifiers issued by the device, in priority order.
relative_motion_range: Option<[Axis; 2]>
Range of relative movement values issued by the device.
Trait Implementations§
Source§impl Clone for MouseDeviceInfo
impl Clone for MouseDeviceInfo
Source§fn clone(&self) -> MouseDeviceInfo
fn clone(&self) -> MouseDeviceInfo
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 MouseDeviceInfo
impl Debug for MouseDeviceInfo
Source§impl<D: ResourceDialect> Decode<MouseDeviceInfo, D> for MouseDeviceInfo
impl<D: ResourceDialect> Decode<MouseDeviceInfo, D> for MouseDeviceInfo
Source§impl Default for MouseDeviceInfo
impl Default for MouseDeviceInfo
Source§fn default() -> MouseDeviceInfo
fn default() -> MouseDeviceInfo
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<MouseDeviceInfo, D> for &MouseDeviceInfo
impl<D: ResourceDialect> Encode<MouseDeviceInfo, D> for &MouseDeviceInfo
Source§impl PartialEq for MouseDeviceInfo
impl PartialEq for MouseDeviceInfo
Source§impl TypeMarker for MouseDeviceInfo
impl TypeMarker for MouseDeviceInfo
Source§type Owned = MouseDeviceInfo
type Owned = MouseDeviceInfo
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 MouseDeviceInfo
impl ValueTypeMarker for MouseDeviceInfo
Source§type Borrowed<'a> = &'a MouseDeviceInfo
type Borrowed<'a> = &'a MouseDeviceInfo
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 MouseDeviceInfo
impl StructuralPartialEq for MouseDeviceInfo
Auto Trait Implementations§
impl Freeze for MouseDeviceInfo
impl RefUnwindSafe for MouseDeviceInfo
impl Send for MouseDeviceInfo
impl Sync for MouseDeviceInfo
impl Unpin for MouseDeviceInfo
impl UnwindSafe for MouseDeviceInfo
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
)