Struct x11rb_protocol::protocol::xinput::SendExtensionEventRequest
source · pub struct SendExtensionEventRequest<'input> {
pub destination: Window,
pub device_id: u8,
pub propagate: bool,
pub events: Cow<'input, [EventForSend]>,
pub classes: Cow<'input, [EventClass]>,
}
Fields§
§destination: Window
§device_id: u8
§propagate: bool
§events: Cow<'input, [EventForSend]>
§classes: Cow<'input, [EventClass]>
Implementations§
source§impl<'input> SendExtensionEventRequest<'input>
impl<'input> SendExtensionEventRequest<'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) -> SendExtensionEventRequest<'static>
pub fn into_owned(self) -> SendExtensionEventRequest<'static>
Clone all borrowed data in this SendExtensionEventRequest.
Trait Implementations§
source§impl<'input> Clone for SendExtensionEventRequest<'input>
impl<'input> Clone for SendExtensionEventRequest<'input>
source§fn clone(&self) -> SendExtensionEventRequest<'input>
fn clone(&self) -> SendExtensionEventRequest<'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 SendExtensionEventRequest<'input>
impl<'input> Debug for SendExtensionEventRequest<'input>
source§impl<'de, 'input> Deserialize<'de> for SendExtensionEventRequest<'input>
impl<'de, 'input> Deserialize<'de> for SendExtensionEventRequest<'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 SendExtensionEventRequest<'input>
impl<'input> Request for SendExtensionEventRequest<'input>
source§impl<'input> Serialize for SendExtensionEventRequest<'input>
impl<'input> Serialize for SendExtensionEventRequest<'input>
impl<'input> VoidRequest for SendExtensionEventRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for SendExtensionEventRequest<'input>
impl<'input> RefUnwindSafe for SendExtensionEventRequest<'input>
impl<'input> Send for SendExtensionEventRequest<'input>
impl<'input> Sync for SendExtensionEventRequest<'input>
impl<'input> Unpin for SendExtensionEventRequest<'input>
impl<'input> UnwindSafe for SendExtensionEventRequest<'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