Enum ptp::Error [] [src]

pub enum Error {
    Response(u16),
    Malformed(String),
    Usb(Error),
    Io(Error),
}

An error in a PTP command

Variants

PTP Responder returned a status code other than Ok, either a constant in StandardResponseCode or a vendor-defined code

Data received was malformed

Another libusb error

Another IO error

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.