Struct xproto::xGenericEvent[][src]

#[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,
}

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: CARD32

Trait Implementations

impl Clone for xGenericEvent[src]

impl Copy for xGenericEvent[src]

impl Debug for xGenericEvent[src]

impl Eq for xGenericEvent[src]

impl Parcel for xGenericEvent[src]

impl PartialEq<xGenericEvent> for xGenericEvent[src]

impl StructuralEq for xGenericEvent[src]

impl StructuralPartialEq for xGenericEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.