Struct x11rb_async::protocol::xinput::SendExtensionEventRequest
source · pub struct SendExtensionEventRequest<'input> {
pub destination: u32,
pub device_id: u8,
pub propagate: bool,
pub events: Cow<'input, [EventForSend]>,
pub classes: Cow<'input, [u32]>,
}Fields§
§destination: u32§device_id: u8§propagate: bool§events: Cow<'input, [EventForSend]>§classes: Cow<'input, [u32]>Implementations§
source§impl<'input> SendExtensionEventRequest<'input>
impl<'input> SendExtensionEventRequest<'input>
sourcepub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'input, [u8]>, Global>, Vec<RawFdContainer, Global>)
pub fn serialize( self, major_opcode: u8 ) -> (Vec<Cow<'input, [u8]>, Global>, Vec<RawFdContainer, Global>)
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<SendExtensionEventRequest<'input>, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &'input [u8] ) -> Result<SendExtensionEventRequest<'input>, 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<'input> Request for SendExtensionEventRequest<'input>
impl<'input> Request for SendExtensionEventRequest<'input>
source§const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
The protocol name of the extension that this request belongs to, or None for core requests
impl<'input> VoidRequest for SendExtensionEventRequest<'input>
Auto Trait Implementations§
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