Struct capsules::usb::SetupData [] [src]

pub struct SetupData {
    pub request_type: DeviceRequestType,
    pub request_code: u8,
    pub value: u16,
    pub index: u16,
    pub length: u16,
}

The datastructure sent in a SETUP handshake

Fields

Methods

impl SetupData
[src]

[src]

Create a SetupData structure from a packet received from the wire

[src]

If the SetupData represents a standard device request, return it

Trait Implementations

impl Debug for SetupData
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for SetupData
[src]

impl Clone for SetupData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more