pub struct GetDeviceInfoReply {Show 17 fields
pub device_id: u8,
pub sequence: u16,
pub length: u32,
pub present: u16,
pub supported: u16,
pub unsupported: u16,
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, Global>,
pub btn_actions: Vec<Action, Global>,
pub leds: Vec<DeviceLedInfo, Global>,
}
Fields
device_id: u8
sequence: u16
length: u32
present: u16
supported: u16
unsupported: u16
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, Global>
btn_actions: Vec<Action, Global>
leds: Vec<DeviceLedInfo, Global>
Implementations
sourceimpl GetDeviceInfoReply
impl GetDeviceInfoReply
sourcepub 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.
sourcepub 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.
sourcepub 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
sourceimpl Clone for GetDeviceInfoReply
impl Clone for GetDeviceInfoReply
sourcefn clone(&self) -> GetDeviceInfoReply
fn clone(&self) -> GetDeviceInfoReply
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetDeviceInfoReply
impl Debug for GetDeviceInfoReply
sourceimpl From<GetDeviceInfoReply> for Reply
impl From<GetDeviceInfoReply> for Reply
sourcefn from(reply: GetDeviceInfoReply) -> Reply
fn from(reply: GetDeviceInfoReply) -> Reply
Converts to this type from the input type.
sourceimpl TryParse for GetDeviceInfoReply
impl TryParse for GetDeviceInfoReply
sourcefn try_parse(
initial_value: &[u8]
) -> Result<(GetDeviceInfoReply, &[u8]), ParseError>
fn try_parse(
initial_value: &[u8]
) -> Result<(GetDeviceInfoReply, &[u8]), ParseError>
Try to parse the given values into an instance of this type. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetDeviceInfoReply
impl Send for GetDeviceInfoReply
impl Sync for GetDeviceInfoReply
impl Unpin for GetDeviceInfoReply
impl UnwindSafe for GetDeviceInfoReply
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> TryParseFd for T where
T: TryParse,
impl<T> TryParseFd for T where
T: TryParse,
sourcefn try_parse_fd(
value: &'a [u8],
&mut Vec<RawFdContainer, Global>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd(
value: &'a [u8],
&mut Vec<RawFdContainer, Global>
) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more