Struct rusty_keys::device::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
Device builder.
Methods
impl Builder
[src]
fn open<P: AsRef<Path>>(path: P) -> Res<Self>
[src]
Create a builder from the specified path.
fn default() -> Res<Self>
[src]
Create a builder from the default path taken from udev.
fn name<T: AsRef<str>>(self, value: T) -> Res<Self>
[src]
Set the name.
fn bus(self, value: u16) -> Self
[src]
Set the bus type.
fn vendor(self, value: u16) -> Self
[src]
Set the vendor ID.
fn product(self, value: u16) -> Self
[src]
Set the product ID.
fn version(self, value: u16) -> Self
[src]
Set the version.
fn event(self, key_codes: Values<&str, *const c_int>) -> Res<Self>
[src]
fn max(self, value: i32) -> Self
[src]
Set the maximum value for the previously enabled absolute event.
fn min(self, value: i32) -> Self
[src]
Set the minimum value for the previously enabled absolute event.
fn fuzz(self, value: i32) -> Self
[src]
Set the fuzz value for the previously enabled absolute event.
fn flat(self, value: i32) -> Self
[src]
Set the flat value for the previously enabled absolute event.
fn create(self) -> Res<Device>
[src]
Create the defined device.