pub struct SetDeviceModifierMappingRequest<'input> {
pub device_id: u8,
pub keymaps: Cow<'input, [u8]>,
}
Fields§
§device_id: u8
§keymaps: Cow<'input, [u8]>
Implementations§
source§impl<'input> SetDeviceModifierMappingRequest<'input>
impl<'input> SetDeviceModifierMappingRequest<'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) -> SetDeviceModifierMappingRequest<'static>
pub fn into_owned(self) -> SetDeviceModifierMappingRequest<'static>
Clone all borrowed data in this SetDeviceModifierMappingRequest.
Trait Implementations§
source§impl<'input> Clone for SetDeviceModifierMappingRequest<'input>
impl<'input> Clone for SetDeviceModifierMappingRequest<'input>
source§fn clone(&self) -> SetDeviceModifierMappingRequest<'input>
fn clone(&self) -> SetDeviceModifierMappingRequest<'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 SetDeviceModifierMappingRequest<'_>
impl Debug for SetDeviceModifierMappingRequest<'_>
source§impl<'input> Default for SetDeviceModifierMappingRequest<'input>
impl<'input> Default for SetDeviceModifierMappingRequest<'input>
source§fn default() -> SetDeviceModifierMappingRequest<'input>
fn default() -> SetDeviceModifierMappingRequest<'input>
Returns the “default value” for a type. Read more
source§impl<'input> ReplyRequest for SetDeviceModifierMappingRequest<'input>
impl<'input> ReplyRequest for SetDeviceModifierMappingRequest<'input>
§type Reply = SetDeviceModifierMappingReply
type Reply = SetDeviceModifierMappingReply
The kind of reply that this request generates.
source§impl<'input> Request for SetDeviceModifierMappingRequest<'input>
impl<'input> Request for SetDeviceModifierMappingRequest<'input>
Auto Trait Implementations§
impl<'input> RefUnwindSafe for SetDeviceModifierMappingRequest<'input>
impl<'input> Send for SetDeviceModifierMappingRequest<'input>
impl<'input> Sync for SetDeviceModifierMappingRequest<'input>
impl<'input> Unpin for SetDeviceModifierMappingRequest<'input>
impl<'input> UnwindSafe for SetDeviceModifierMappingRequest<'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