Struct x11rb::protocol::xinput::DeviceChangedEvent[][src]

pub struct DeviceChangedEvent {
    pub response_type: u8,
    pub extension: u8,
    pub sequence: u16,
    pub length: u32,
    pub event_type: u16,
    pub deviceid: DeviceId,
    pub time: Timestamp,
    pub sourceid: DeviceId,
    pub reason: ChangeReason,
    pub classes: Vec<DeviceClass>,
}

Fields

response_type: u8extension: u8sequence: u16length: u32event_type: u16deviceid: DeviceIdtime: Timestampsourceid: DeviceIdreason: ChangeReasonclasses: Vec<DeviceClass>

Implementations

impl DeviceChangedEvent[src]

pub fn num_classes(&self) -> u16[src]

Get the value of the num_classes field.

The num_classes field is used as the length field of the classes field. This function computes the field’s value again based on the length of the list.

Panics

Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.

Trait Implementations

impl Clone for DeviceChangedEvent[src]

impl Debug for DeviceChangedEvent[src]

impl Eq for DeviceChangedEvent[src]

impl PartialEq<DeviceChangedEvent> for DeviceChangedEvent[src]

impl StructuralEq for DeviceChangedEvent[src]

impl StructuralPartialEq for DeviceChangedEvent[src]

impl TryParse for DeviceChangedEvent[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.

impl<T> TryParseFd for T where
    T: TryParse
[src]