Struct SetDeviceValuatorsRequest
pub struct SetDeviceValuatorsRequest<'input> {
pub device_id: u8,
pub first_valuator: u8,
pub valuators: Cow<'input, [i32]>,
}
Fields§
§device_id: u8
§first_valuator: u8
§valuators: Cow<'input, [i32]>
Implementations§
§impl<'input> SetDeviceValuatorsRequest<'input>
impl<'input> SetDeviceValuatorsRequest<'input>
pub fn serialize(
self,
major_opcode: u8,
) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
pub fn serialize( self, major_opcode: u8, ) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
Serialize this request into bytes for the provided connection
pub fn into_owned(self) -> SetDeviceValuatorsRequest<'static>
pub fn into_owned(self) -> SetDeviceValuatorsRequest<'static>
Clone all borrowed data in this SetDeviceValuatorsRequest.
Trait Implementations§
§impl<'input> Clone for SetDeviceValuatorsRequest<'input>
impl<'input> Clone for SetDeviceValuatorsRequest<'input>
§fn clone(&self) -> SetDeviceValuatorsRequest<'input>
fn clone(&self) -> SetDeviceValuatorsRequest<'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 more§impl Debug for SetDeviceValuatorsRequest<'_>
impl Debug for SetDeviceValuatorsRequest<'_>
§impl<'input> Default for SetDeviceValuatorsRequest<'input>
impl<'input> Default for SetDeviceValuatorsRequest<'input>
§fn default() -> SetDeviceValuatorsRequest<'input>
fn default() -> SetDeviceValuatorsRequest<'input>
Returns the “default value” for a type. Read more
§impl<'input> ReplyRequest for SetDeviceValuatorsRequest<'input>
impl<'input> ReplyRequest for SetDeviceValuatorsRequest<'input>
§type Reply = SetDeviceValuatorsReply
type Reply = SetDeviceValuatorsReply
The kind of reply that this request generates.
§impl<'input> Request for SetDeviceValuatorsRequest<'input>
impl<'input> Request for SetDeviceValuatorsRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for SetDeviceValuatorsRequest<'input>
impl<'input> RefUnwindSafe for SetDeviceValuatorsRequest<'input>
impl<'input> Send for SetDeviceValuatorsRequest<'input>
impl<'input> Sync for SetDeviceValuatorsRequest<'input>
impl<'input> Unpin for SetDeviceValuatorsRequest<'input>
impl<'input> UnwindSafe for SetDeviceValuatorsRequest<'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
)