Struct input_linux::uinput::UInputHandle[][src]

pub struct UInputHandle<F>(_);
Expand description

A handle to a uinput allowing the use of ioctls

Implementations

Create a new handle using an existing open file object.

Extracts the contained handle.

A reference to the contained handle.

A mutable reference to the contained handle.

Create a new handle from a raw file descriptor.

Create a new uinput device using the legacy UI_DEV_CREATE interface

Create a new uinput device, and fall back on the legacy interface if necessary

Write input events to the device

Read events from uinput (see EV_UINPUT)

Returns the sysfs directory for the input device.

Note that this path may not exist if sysfs is not mounted in the standard /sys location.

The device name of the input device.

The device node path of the input device.

Note that this path may not exist if /dev/input/* isn’t mounted properly.

UI_DEV_CREATE

UI_DEV_DESTROY

UI_DEV_SETUP

UI_ABS_SETUP

UI_SET_EVBIT

UI_SET_KEYBIT

UI_SET_RELBIT

UI_SET_ABSBIT

UI_SET_MSCBIT

UI_SET_LEDBIT

UI_SET_SNDBIT

UI_SET_FFBIT

UI_SET_PHYS

UI_SET_SWBIT

UI_SET_PROPBIT

UI_BEGIN_FF_UPLOAD

UI_END_FF_UPLOAD

UI_BEGIN_FF_ERASE

UI_END_FF_ERASE

UI_GET_SYSNAME

UI_GET_SYSNAME

UI_GET_VERSION

Trait Implementations

Constructs a new instance of Self from the given raw file descriptor. Read more

Consumes this object, returning the raw underlying file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.