Struct XIGrabDeviceRequest
pub struct XIGrabDeviceRequest<'input> {
pub window: u32,
pub time: u32,
pub cursor: u32,
pub deviceid: u16,
pub mode: GrabMode,
pub paired_device_mode: GrabMode,
pub owner_events: GrabOwner,
pub mask: Cow<'input, [u32]>,
}
Fields§
§window: u32
§time: u32
§cursor: u32
§deviceid: u16
§mode: GrabMode
§paired_device_mode: GrabMode
§owner_events: GrabOwner
§mask: Cow<'input, [u32]>
Implementations§
§impl<'input> XIGrabDeviceRequest<'input>
impl<'input> XIGrabDeviceRequest<'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) -> XIGrabDeviceRequest<'static>
pub fn into_owned(self) -> XIGrabDeviceRequest<'static>
Clone all borrowed data in this XIGrabDeviceRequest.
Trait Implementations§
§impl<'input> Clone for XIGrabDeviceRequest<'input>
impl<'input> Clone for XIGrabDeviceRequest<'input>
§fn clone(&self) -> XIGrabDeviceRequest<'input>
fn clone(&self) -> XIGrabDeviceRequest<'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 XIGrabDeviceRequest<'_>
impl Debug for XIGrabDeviceRequest<'_>
§impl<'input> Default for XIGrabDeviceRequest<'input>
impl<'input> Default for XIGrabDeviceRequest<'input>
§fn default() -> XIGrabDeviceRequest<'input>
fn default() -> XIGrabDeviceRequest<'input>
Returns the “default value” for a type. Read more
§impl<'input> ReplyRequest for XIGrabDeviceRequest<'input>
impl<'input> ReplyRequest for XIGrabDeviceRequest<'input>
§type Reply = XIGrabDeviceReply
type Reply = XIGrabDeviceReply
The kind of reply that this request generates.
§impl<'input> Request for XIGrabDeviceRequest<'input>
impl<'input> Request for XIGrabDeviceRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for XIGrabDeviceRequest<'input>
impl<'input> RefUnwindSafe for XIGrabDeviceRequest<'input>
impl<'input> Send for XIGrabDeviceRequest<'input>
impl<'input> Sync for XIGrabDeviceRequest<'input>
impl<'input> Unpin for XIGrabDeviceRequest<'input>
impl<'input> UnwindSafe for XIGrabDeviceRequest<'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
)