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