Struct libptp::Camera [−][src]
pub struct Camera<T: UsbContext> { /* fields omitted */ }
Implementations
execute a PTP transaction. consists of the following phases:
- command
- command data (optional, if
data
is Some) - response data (optional, if response contains a payload)
- response status
NB: each phase involves a separate USB transfer, and
timeout
is used for each phase, so the total time taken may be greater thantimeout
.