Struct x11rb_protocol::protocol::xkb::SetDeviceInfoRequest
source · pub struct SetDeviceInfoRequest<'input> {
pub device_spec: DeviceSpec,
pub first_btn: u8,
pub change: XIFeature,
pub btn_actions: Cow<'input, [Action]>,
pub leds: Cow<'input, [DeviceLedInfo]>,
}
Fields§
§device_spec: DeviceSpec
§first_btn: u8
§change: XIFeature
§btn_actions: Cow<'input, [Action]>
§leds: Cow<'input, [DeviceLedInfo]>
Implementations§
source§impl<'input> SetDeviceInfoRequest<'input>
impl<'input> SetDeviceInfoRequest<'input>
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 4]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'input, [u8]>; 4]>
Serialize this request into bytes for the provided connection
sourcepub fn into_owned(self) -> SetDeviceInfoRequest<'static>
pub fn into_owned(self) -> SetDeviceInfoRequest<'static>
Clone all borrowed data in this SetDeviceInfoRequest.
Trait Implementations§
source§impl<'input> Clone for SetDeviceInfoRequest<'input>
impl<'input> Clone for SetDeviceInfoRequest<'input>
source§fn clone(&self) -> SetDeviceInfoRequest<'input>
fn clone(&self) -> SetDeviceInfoRequest<'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 SetDeviceInfoRequest<'_>
impl Debug for SetDeviceInfoRequest<'_>
source§impl<'input> Request for SetDeviceInfoRequest<'input>
impl<'input> Request for SetDeviceInfoRequest<'input>
impl<'input> VoidRequest for SetDeviceInfoRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for SetDeviceInfoRequest<'input>
impl<'input> RefUnwindSafe for SetDeviceInfoRequest<'input>
impl<'input> Send for SetDeviceInfoRequest<'input>
impl<'input> Sync for SetDeviceInfoRequest<'input>
impl<'input> Unpin for SetDeviceInfoRequest<'input>
impl<'input> UnwindSafe for SetDeviceInfoRequest<'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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)