pub struct ListComponentsReply {
pub device_id: u8,
pub sequence: u16,
pub length: u32,
pub extra: u16,
pub keymaps: Vec<Listing>,
pub keycodes: Vec<Listing>,
pub types: Vec<Listing>,
pub compat_maps: Vec<Listing>,
pub symbols: Vec<Listing>,
pub geometries: Vec<Listing>,
}Fields§
§device_id: u8§sequence: u16§length: u32§extra: u16§keymaps: Vec<Listing>§keycodes: Vec<Listing>§types: Vec<Listing>§compat_maps: Vec<Listing>§symbols: Vec<Listing>§geometries: Vec<Listing>Implementations§
Source§impl ListComponentsReply
impl ListComponentsReply
Sourcepub fn n_keymaps(&self) -> u16
pub fn n_keymaps(&self) -> u16
Get the value of the nKeymaps field.
The nKeymaps field is used as the length field of the keymaps field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Sourcepub fn n_keycodes(&self) -> u16
pub fn n_keycodes(&self) -> u16
Get the value of the nKeycodes field.
The nKeycodes field is used as the length field of the keycodes field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Sourcepub fn n_types(&self) -> u16
pub fn n_types(&self) -> u16
Get the value of the nTypes field.
The nTypes field is used as the length field of the types field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Sourcepub fn n_compat_maps(&self) -> u16
pub fn n_compat_maps(&self) -> u16
Get the value of the nCompatMaps field.
The nCompatMaps field is used as the length field of the compatMaps field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Sourcepub fn n_symbols(&self) -> u16
pub fn n_symbols(&self) -> u16
Get the value of the nSymbols field.
The nSymbols field is used as the length field of the symbols field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Sourcepub fn n_geometries(&self) -> u16
pub fn n_geometries(&self) -> u16
Get the value of the nGeometries field.
The nGeometries field is used as the length field of the geometries field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations§
Source§impl Clone for ListComponentsReply
impl Clone for ListComponentsReply
Source§fn clone(&self) -> ListComponentsReply
fn clone(&self) -> ListComponentsReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more