Struct GetDeviceInfoReply
pub struct GetDeviceInfoReply {Show 17 fields
pub device_id: u8,
pub sequence: u16,
pub length: u32,
pub present: XIFeature,
pub supported: XIFeature,
pub unsupported: XIFeature,
pub first_btn_wanted: u8,
pub n_btns_wanted: u8,
pub first_btn_rtrn: u8,
pub total_btns: u8,
pub has_own_state: bool,
pub dflt_kbd_fb: u16,
pub dflt_led_fb: u16,
pub dev_type: u32,
pub name: Vec<u8>,
pub btn_actions: Vec<Action>,
pub leds: Vec<DeviceLedInfo>,
}
Fields§
§device_id: u8
§sequence: u16
§length: u32
§present: XIFeature
§supported: XIFeature
§unsupported: XIFeature
§first_btn_wanted: u8
§n_btns_wanted: u8
§first_btn_rtrn: u8
§total_btns: u8
§has_own_state: bool
§dflt_kbd_fb: u16
§dflt_led_fb: u16
§dev_type: u32
§name: Vec<u8>
§btn_actions: Vec<Action>
§leds: Vec<DeviceLedInfo>
Implementations§
§impl GetDeviceInfoReply
impl GetDeviceInfoReply
pub fn n_device_led_f_bs(&self) -> u16
pub fn n_device_led_f_bs(&self) -> u16
Get the value of the nDeviceLedFBs
field.
The nDeviceLedFBs
field is used as the length field of the leds
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_btns_rtrn(&self) -> u8
pub fn n_btns_rtrn(&self) -> u8
Get the value of the nBtnsRtrn
field.
The nBtnsRtrn
field is used as the length field of the btnActions
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 name_len(&self) -> u16
pub fn name_len(&self) -> u16
Get the value of the nameLen
field.
The nameLen
field is used as the length field of the name
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 GetDeviceInfoReply
impl Clone for GetDeviceInfoReply
§fn clone(&self) -> GetDeviceInfoReply
fn clone(&self) -> GetDeviceInfoReply
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for GetDeviceInfoReply
impl Debug for GetDeviceInfoReply
§impl From<GetDeviceInfoReply> for Reply
impl From<GetDeviceInfoReply> for Reply
§fn from(reply: GetDeviceInfoReply) -> Reply
fn from(reply: GetDeviceInfoReply) -> Reply
§impl Serialize for GetDeviceInfoReply
impl Serialize for GetDeviceInfoReply
§impl TryParse for GetDeviceInfoReply
impl TryParse for GetDeviceInfoReply
§fn try_parse(
initial_value: &[u8],
) -> Result<(GetDeviceInfoReply, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(GetDeviceInfoReply, &[u8]), ParseError>
Auto Trait Implementations§
impl Freeze for GetDeviceInfoReply
impl RefUnwindSafe for GetDeviceInfoReply
impl Send for GetDeviceInfoReply
impl Sync for GetDeviceInfoReply
impl Unpin for GetDeviceInfoReply
impl UnwindSafe for GetDeviceInfoReply
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
)