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 try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &'input [u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
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<'input> Debug for SetDeviceInfoRequest<'input>
impl<'input> Debug for SetDeviceInfoRequest<'input>
source§impl<'de, 'input> Deserialize<'de> for SetDeviceInfoRequest<'input>
impl<'de, 'input> Deserialize<'de> for SetDeviceInfoRequest<'input>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'input> Request for SetDeviceInfoRequest<'input>
impl<'input> Request for SetDeviceInfoRequest<'input>
source§impl<'input> Serialize for SetDeviceInfoRequest<'input>
impl<'input> Serialize 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