virtio_drivers::device::input

Enum InputConfigSelect

Source
#[repr(u8)]
pub enum InputConfigSelect { IdName = 1, IdSerial = 2, IdDevids = 3, PropBits = 16, EvBits = 17, AbsInfo = 18, }
Expand description

Select value used for VirtIOInput::query_config_select().

Variants§

§

IdName = 1

Returns the name of the device, in u.string. subsel is zero.

§

IdSerial = 2

Returns the serial number of the device, in u.string. subsel is zero.

§

IdDevids = 3

Returns ID information of the device, in u.ids. subsel is zero.

§

PropBits = 16

Returns input properties of the device, in u.bitmap. subsel is zero. Individual bits in the bitmap correspond to INPUT_PROP_* constants used by the underlying evdev implementation.

§

EvBits = 17

subsel specifies the event type using EV_* constants in the underlying evdev implementation. If size is non-zero the event type is supported and a bitmap of supported event codes is returned in u.bitmap. Individual bits in the bitmap correspond to implementation-defined input event codes, for example keys or pointing device axes.

§

AbsInfo = 18

subsel specifies the absolute axis using ABS_* constants in the underlying evdev implementation. Information about the axis will be returned in u.abs.

Trait Implementations§

Source§

impl Clone for InputConfigSelect

Source§

fn clone(&self) -> InputConfigSelect

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InputConfigSelect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for InputConfigSelect

Auto Trait Implementations§

§

impl Freeze for InputConfigSelect

§

impl RefUnwindSafe for InputConfigSelect

§

impl Send for InputConfigSelect

§

impl Sync for InputConfigSelect

§

impl Unpin for InputConfigSelect

§

impl UnwindSafe for InputConfigSelect

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.