Struct usb_device::class::ControlIn

source ·
pub struct ControlIn<'a, 'p, 'o, B: UsbBus>(_);
Expand description

Handle for a control IN transfer. When implementing a class, use the methods of this object to response to the transfer with either data 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.

Accepts the transfer with the supplied buffer.

Accepts the transfer with a callback that can write to the internal buffer of the control pipe. Can be used to avoid an extra copy.

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.

Should always be Self
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.