Struct swayipc_async::Input
source · [−]#[non_exhaustive]pub struct Input {
pub identifier: String,
pub name: String,
pub vendor: i32,
pub product: i32,
pub input_type: String,
pub xkb_active_layout_name: Option<String>,
pub xkb_layout_names: Vec<String, Global>,
pub xkb_active_layout_index: Option<i32>,
pub libinput: Option<Libinput>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: StringThe identifier for the input device.
name: StringThe human readable name for the device.
vendor: i32The vendor code for the input device.
product: i32The product code for the input device.
input_type: StringThe device type. Currently this can be keyboard, pointer, touch, tablet_tool, tablet_pad, or switch.
xkb_active_layout_name: Option<String>(Only keyboards) The name of the active keyboard layout in use.
xkb_layout_names: Vec<String, Global>(Only keyboards) A list a layout names configured for the keyboard.
xkb_active_layout_index: Option<i32>(Only keyboards) The index of the active keyboard layout in use.
libinput: Option<Libinput>(Only libinput devices) An object describing the current device settings. See below for more information.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Input, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Input, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more