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: u8sequence: u16length: u32present: u16supported: u16unsupported: u16first_btn_wanted: u8n_btns_wanted: u8first_btn_rtrn: u8total_btns: u8has_own_state: booldflt_kbd_fb: u16dflt_led_fb: u16dev_type: u32name: Vec<u8, Global>btn_actions: Vec<Action, Global>leds: Vec<DeviceLedInfo, Global>

Implementations

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.

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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Try to parse the given values into an instance of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Try to parse the given values into an instance of this type. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more