Struct xproto::xGenericEvent [−][src]
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_: BYTE
extension: CARD8
sequenceNumber: CARD16
length: CARD32
evtype: CARD16
pad2: CARD16
pad3: CARD32
pad4: CARD32
pad5: CARD32
pad6: CARD32
pad7: CARD32
Trait Implementations
impl Clone for xGenericEvent
[src]
fn clone(&self) -> xGenericEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for xGenericEvent
[src]
impl Debug for xGenericEvent
[src]
impl Eq for xGenericEvent
[src]
impl Parcel for xGenericEvent
[src]
const TYPE_NAME: &'static str
[src]
fn read_field(
__io_reader: &mut dyn Read,
__settings: &Settings,
_: &mut Hints
) -> Result<Self, Error>
[src]
__io_reader: &mut dyn Read,
__settings: &Settings,
_: &mut Hints
) -> Result<Self, Error>
fn write_field(
&self,
__io_writer: &mut dyn Write,
__settings: &Settings,
_: &mut Hints
) -> Result<(), Error>
[src]
&self,
__io_writer: &mut dyn Write,
__settings: &Settings,
_: &mut Hints
) -> Result<(), Error>
pub fn read(read: &mut dyn Read, settings: &Settings) -> Result<Self, Error>
[src]
pub fn write(
&self,
write: &mut dyn Write,
settings: &Settings
) -> Result<(), Error>
[src]
&self,
write: &mut dyn Write,
settings: &Settings
) -> Result<(), Error>
pub fn into_stream(
self,
settings: &Settings
) -> Result<Cursor<Vec<u8, Global>>, Error>
[src]
self,
settings: &Settings
) -> Result<Cursor<Vec<u8, Global>>, Error>
pub fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
[src]
pub fn field_from_raw_bytes(
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
[src]
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
pub fn raw_bytes(&self, settings: &Settings) -> Result<Vec<u8, Global>, Error>
[src]
pub fn raw_bytes_field(
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8, Global>, Error>
[src]
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8, Global>, Error>
pub fn type_name(&self) -> &'static str
[src]
impl PartialEq<xGenericEvent> for xGenericEvent
[src]
fn eq(&self, other: &xGenericEvent) -> bool
[src]
fn ne(&self, other: &xGenericEvent) -> bool
[src]
impl StructuralEq for xGenericEvent
[src]
impl StructuralPartialEq for xGenericEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for xGenericEvent
[src]
impl Send for xGenericEvent
[src]
impl Sync for xGenericEvent
[src]
impl Unpin for xGenericEvent
[src]
impl UnwindSafe for xGenericEvent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,