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
ProtocolVersion(u16)
Tuple Fields of ProtocolVersion
0: u16
Fields of ConnectedControllerResponse
controller_info: ControllerInfo
ControllerDataRequest(ControllerDataRequest)
Tuple Fields of ControllerDataRequest
Fields of ControllerData
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
Blanket Implementations
Mutably borrows from an owned value. Read more