Struct x11rb::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 From<ListComponentsReply> for Reply
impl From<ListComponentsReply> for Reply
source§fn from(reply: ListComponentsReply) -> Reply
fn from(reply: ListComponentsReply) -> Reply
source§impl Serialize for ListComponentsReply
impl Serialize for ListComponentsReply
source§impl TryParse for ListComponentsReply
impl TryParse for ListComponentsReply
source§fn try_parse(
initial_value: &[u8],
) -> Result<(ListComponentsReply, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(ListComponentsReply, &[u8]), ParseError>
Auto Trait Implementations§
impl Freeze for ListComponentsReply
impl RefUnwindSafe for ListComponentsReply
impl Send for ListComponentsReply
impl Sync for ListComponentsReply
impl Unpin for ListComponentsReply
impl UnwindSafe for ListComponentsReply
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)