Struct ListComponentsReply
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§
§impl ListComponentsReply
impl ListComponentsReply
pub 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.
pub 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.
pub 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.
pub 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.
pub 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.
pub 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§
§impl Clone for ListComponentsReply
impl Clone for ListComponentsReply
§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§impl Debug for ListComponentsReply
impl Debug for ListComponentsReply
§impl Default for ListComponentsReply
impl Default for ListComponentsReply
§fn default() -> ListComponentsReply
fn default() -> ListComponentsReply
§impl From<ListComponentsReply> for Reply
impl From<ListComponentsReply> for Reply
§fn from(reply: ListComponentsReply) -> Reply
fn from(reply: ListComponentsReply) -> Reply
§impl Serialize for ListComponentsReply
impl Serialize for ListComponentsReply
§impl TryParse for ListComponentsReply
impl TryParse for ListComponentsReply
§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
)