Enum libptp::Error [−][src]
Expand description
An error in a PTP command
Variants
Response(u16)
PTP Responder returned a status code other than Ok, either a constant in StandardResponseCode or a vendor-defined code
Tuple Fields of Response
0: u16
Malformed(String)
Data received was malformed
Tuple Fields of Malformed
0: String
Usb(Error)
Another rusb error
Tuple Fields of Usb
0: Error
Io(Error)
Another IO error
Tuple Fields of Io
0: Error
Trait Implementations
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()