embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module resp

Module resp 

Source
Expand description

MTP / PTP response codes (ResponseCode).

Constantsยง

ACCESS_DENIED
Access to the object or storage was denied.
CAPTURE_ALREADY_TERMINATED
Capture operation was already terminated.
DEVICE_BUSY
Device is busy processing another operation or cancellation.
DEVICE_PROP_NOT_SUPPORTED
Device property code is not supported.
GENERAL_ERROR
Unspecified general error.
INCOMPLETE_TRANSFER
Transfer ended before completion.
INVALID_CODE_FORMAT
Code format is invalid.
INVALID_DEVICE_PROP_FORMAT
Device property format is invalid.
INVALID_DEVICE_PROP_VALUE
Device property value is invalid.
INVALID_OBJECT_FORMAT_CODE
Object format code is invalid or unsupported.
INVALID_OBJECT_HANDLE
Specified ObjectHandle does not exist.
INVALID_OBJECT_PROP_CODE
Object property code is invalid.
INVALID_OBJECT_PROP_FORMAT
Object property format is invalid.
INVALID_OBJECT_PROP_VALUE
Object property value is invalid.
INVALID_OBJECT_REFERENCE
Object reference is invalid.
INVALID_PARAMETER
Invalid parameter value.
INVALID_PARENT_OBJECT
Specified ParentObject handle is invalid or not an association.
INVALID_STORAGE_ID
Specified StorageID does not exist.
INVALID_TRANSACTION_ID
Transaction ID is invalid or out of sequence.
NO_THUMBNAIL_PRESENT
Object has no thumbnail.
NO_VALID_OBJECT_INFO
SendObject was issued without a preceding SendObjectInfo.
OBJECT_PROP_NOT_SUPPORTED
Object property is not supported for this format.
OBJECT_WRITE_PROTECTED
Object is write-protected.
OK
Operation completed successfully.
OPERATION_NOT_SUPPORTED
Operation is not supported by this device.
PARAMETER_NOT_SUPPORTED
One or more parameters are not supported.
PARTIAL_DELETION
Only part of an association/tree could be deleted.
SELF_TEST_FAILED
Device self-test failed.
SESSION_ALREADY_OPEN
A session is already open.
SESSION_NOT_OPEN
No MTP session is currently open.
SPECIFICATION_BY_FORMAT_UNSUPPORTED
Filtering by format is unsupported.
SPECIFICATION_OF_DESTINATION_UNSUPPORTED
Destination specification is unsupported.
STORE_FULL
Storage volume does not have enough free space.
STORE_NOT_AVAILABLE
Storage volume is currently unavailable.
STORE_READ_ONLY
Storage volume is read-only.
TRANSACTION_CANCELLED
Transaction was cancelled by the host.
UNDEFINED
Undefined response.
UNKNOWN_VENDOR_CODE
Vendor code is unknown.