#[repr(u16)]pub enum ResponseCode {
Show 25 variants
Ok = 8_193,
GeneralError = 8_194,
SessionNotOpen = 8_195,
InvalidTransactionId = 8_196,
OperationNotSupported = 8_197,
ParameterNotSupported = 8_198,
IncompleteTransfer = 8_199,
InvalidStorageId = 8_200,
InvalidObjectHandle = 8_201,
DevicePropNotSupported = 8_202,
InvalidObjectFormatCode = 8_203,
StoreFull = 8_204,
ObjectWriteProtected = 8_205,
StoreReadOnly = 8_206,
AccessDenied = 8_207,
NoThumbnailPresent = 8_208,
DeviceBusy = 8_217,
InvalidParentObject = 8_218,
InvalidDevicePropFormat = 8_219,
InvalidDevicePropValue = 8_220,
InvalidParameter = 8_221,
SessionAlreadyOpen = 8_222,
TransactionCancelled = 8_223,
ObjectTooLarge = 43_017,
Unknown(u16),
}Expand description
PTP response codes (status returned by device).
These codes indicate the result of an operation.
Variants§
Ok = 8_193
Operation completed successfully.
GeneralError = 8_194
General unspecified error.
SessionNotOpen = 8_195
Session is not open.
InvalidTransactionId = 8_196
Invalid transaction ID.
OperationNotSupported = 8_197
Operation is not supported.
ParameterNotSupported = 8_198
Parameter is not supported.
IncompleteTransfer = 8_199
Transfer was incomplete.
InvalidStorageId = 8_200
Invalid storage ID.
InvalidObjectHandle = 8_201
Invalid object handle.
DevicePropNotSupported = 8_202
Device property not supported.
InvalidObjectFormatCode = 8_203
Invalid object format code.
StoreFull = 8_204
Storage is full.
ObjectWriteProtected = 8_205
Object is write-protected.
StoreReadOnly = 8_206
Storage is read-only.
AccessDenied = 8_207
Access denied.
NoThumbnailPresent = 8_208
Object has no thumbnail.
DeviceBusy = 8_217
Device is busy.
InvalidParentObject = 8_218
Invalid parent object.
InvalidDevicePropFormat = 8_219
Invalid device property format.
InvalidDevicePropValue = 8_220
Invalid device property value.
InvalidParameter = 8_221
Invalid parameter value.
SessionAlreadyOpen = 8_222
Session is already open.
TransactionCancelled = 8_223
Transaction was cancelled.
ObjectTooLarge = 43_017
Object is too large for the storage.
Unknown(u16)
Unknown or vendor-specific response code.
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseCode
impl Debug for ResponseCode
Source§impl From<ResponseCode> for u16
impl From<ResponseCode> for u16
Source§fn from(enum_value: ResponseCode) -> Self
fn from(enum_value: ResponseCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ResponseCode
impl From<u16> for ResponseCode
Source§impl FromPrimitive for ResponseCode
impl FromPrimitive for ResponseCode
Source§impl Hash for ResponseCode
impl Hash for ResponseCode
Source§impl PartialEq for ResponseCode
impl PartialEq for ResponseCode
impl Copy for ResponseCode
impl Eq for ResponseCode
impl StructuralPartialEq for ResponseCode
Auto Trait Implementations§
impl Freeze for ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnsafeUnpin for ResponseCode
impl UnwindSafe for ResponseCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more