Struct xproto::xGenericEvent
source · #[repr(C)]pub struct xGenericEvent {
pub type_: BYTE,
pub extension: CARD8,
pub sequenceNumber: CARD16,
pub length: CARD32,
pub evtype: CARD16,
pub pad2: CARD16,
pub pad3: CARD32,
pub pad4: CARD32,
pub pad5: CARD32,
pub pad6: CARD32,
pub pad7: CARD32,
}Expand description
Generic event
Those events are not part of the core protocol spec and can be used by various extensions. type is always GenericEvent extension is the minor opcode of the extension the event belongs to. evtype is the actual event type, unique per extension.
GenericEvents can be longer than 32 bytes, with the length field specifying the number of 4 byte blocks after the first 32 bytes.
Fields
type_: BYTEextension: CARD8sequenceNumber: CARD16length: CARD32evtype: CARD16pad2: CARD16pad3: CARD32pad4: CARD32pad5: CARD32pad6: CARD32pad7: CARD32Trait Implementations
sourceimpl Clone for xGenericEvent
impl Clone for xGenericEvent
sourcefn clone(&self) -> xGenericEvent
fn clone(&self) -> xGenericEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for xGenericEvent
impl Debug for xGenericEvent
impl Copy for xGenericEvent
Auto Trait Implementations
impl RefUnwindSafe for xGenericEvent
impl Send for xGenericEvent
impl Sync for xGenericEvent
impl Unpin for xGenericEvent
impl UnwindSafe for xGenericEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more