pub struct ChangeDeviceKeyMappingRequest<'input> {
pub device_id: u8,
pub first_keycode: KeyCode,
pub keysyms_per_keycode: u8,
pub keycode_count: u8,
pub keysyms: Cow<'input, [Keysym]>,
}
Fields§
§device_id: u8
§first_keycode: KeyCode
§keysyms_per_keycode: u8
§keycode_count: u8
§keysyms: Cow<'input, [Keysym]>
Implementations§
source§impl<'input> ChangeDeviceKeyMappingRequest<'input>
impl<'input> ChangeDeviceKeyMappingRequest<'input>
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 3]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 3]>
Serialize this request into bytes for the provided connection
sourcepub fn into_owned(self) -> ChangeDeviceKeyMappingRequest<'static>
pub fn into_owned(self) -> ChangeDeviceKeyMappingRequest<'static>
Clone all borrowed data in this ChangeDeviceKeyMappingRequest.
Trait Implementations§
source§impl<'input> Clone for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Clone for ChangeDeviceKeyMappingRequest<'input>
source§fn clone(&self) -> ChangeDeviceKeyMappingRequest<'input>
fn clone(&self) -> ChangeDeviceKeyMappingRequest<'input>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChangeDeviceKeyMappingRequest<'_>
impl Debug for ChangeDeviceKeyMappingRequest<'_>
source§impl<'input> Default for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Default for ChangeDeviceKeyMappingRequest<'input>
source§fn default() -> ChangeDeviceKeyMappingRequest<'input>
fn default() -> ChangeDeviceKeyMappingRequest<'input>
Returns the “default value” for a type. Read more
source§impl<'input> Request for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Request for ChangeDeviceKeyMappingRequest<'input>
impl<'input> VoidRequest for ChangeDeviceKeyMappingRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for ChangeDeviceKeyMappingRequest<'input>
impl<'input> RefUnwindSafe for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Send for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Sync for ChangeDeviceKeyMappingRequest<'input>
impl<'input> Unpin for ChangeDeviceKeyMappingRequest<'input>
impl<'input> UnwindSafe for ChangeDeviceKeyMappingRequest<'input>
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
Mutably borrows from an owned value. Read more