Struct x11rb_protocol::protocol::xkb::ListComponentsReply
source · 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 moresource§impl Debug for ListComponentsReply
impl Debug for ListComponentsReply
source§impl Default for ListComponentsReply
impl Default for ListComponentsReply
source§fn default() -> ListComponentsReply
fn default() -> ListComponentsReply
source§impl<'de> Deserialize<'de> for ListComponentsReply
impl<'de> Deserialize<'de> for ListComponentsReply
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<ListComponentsReply> for Reply
impl From<ListComponentsReply> for Reply
source§fn from(reply: ListComponentsReply) -> Reply
fn from(reply: ListComponentsReply) -> Reply
source§impl Hash for ListComponentsReply
impl Hash for ListComponentsReply
source§impl Ord for ListComponentsReply
impl Ord for ListComponentsReply
source§fn cmp(&self, other: &ListComponentsReply) -> Ordering
fn cmp(&self, other: &ListComponentsReply) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ListComponentsReply
impl PartialEq for ListComponentsReply
source§fn eq(&self, other: &ListComponentsReply) -> bool
fn eq(&self, other: &ListComponentsReply) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ListComponentsReply
impl PartialOrd for ListComponentsReply
source§fn partial_cmp(&self, other: &ListComponentsReply) -> Option<Ordering>
fn partial_cmp(&self, other: &ListComponentsReply) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more