Enum pad_motion::protocol::MessagePayload[][src]

pub enum MessagePayload {
    None,
    ProtocolVersion(u16),
    ConnectedControllersRequest {
        amount: i32,
        slot_numbers: [u8; 4],
    },
    ConnectedControllerResponse {
        controller_info: ControllerInfo,
    },
    ControllerDataRequest(ControllerDataRequest),
    ControllerData {
        packet_number: u32,
        controller_info: ControllerInfo,
        controller_data: ControllerData,
    },
}

Variants

None
ProtocolVersion(u16)
ConnectedControllersRequest

Fields of ConnectedControllersRequest

amount: i32slot_numbers: [u8; 4]
ConnectedControllerResponse

Fields of ConnectedControllerResponse

controller_info: ControllerInfo
ControllerDataRequest(ControllerDataRequest)
ControllerData

Fields of ControllerData

packet_number: u32controller_info: ControllerInfocontroller_data: ControllerData

Trait Implementations

impl Clone for MessagePayload[src]

impl Copy for MessagePayload[src]

impl Debug for MessagePayload[src]

impl PartialEq<MessagePayload> for MessagePayload[src]

impl StructuralPartialEq for MessagePayload[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<V, T> VZip<V> for T where
    V: MultiLane<T>,