pub struct ControlOut<'a, 'p, 'r, B: UsbBus> { /* private fields */ }
Expand description

Handle for a control OUT transfer. When implementing a class, use the methods of this object to response to the transfer with an ACT or an error (STALL condition). To ignore the request and pass it on to the next class, simply don’t call any method.

Implementations

Gets the request from the SETUP packet.

Gets the data from the data stage of the request. May be empty if there was no data stage.

Accepts the transfer by succesfully responding to the status stage.

Rejects the transfer by stalling the pipe.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.