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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The textual name of the type.
Reads a value from a stream. Read more
Writes a value to a stream.
Reads a new item with a fresh set of hints. Read more
Convers the value into a byte stream that implements std::io::Read.
Parses a new value from its raw byte representation. Read more
Parses a new value from its raw byte representation. Read more
Gets the raw byte representation of the value.
Gets the name of the type; Parcel::TYPE_NAME.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.