#[repr(u16)]pub enum OperationCode {
Show 24 variants
GetDeviceInfo = 4_097,
OpenSession = 4_098,
CloseSession = 4_099,
GetStorageIds = 4_100,
GetStorageInfo = 4_101,
GetNumObjects = 4_102,
GetObjectHandles = 4_103,
GetObjectInfo = 4_104,
GetObject = 4_105,
GetThumb = 4_106,
DeleteObject = 4_107,
SendObjectInfo = 4_108,
SendObject = 4_109,
InitiateCapture = 4_110,
GetDevicePropDesc = 4_116,
GetDevicePropValue = 4_117,
SetDevicePropValue = 4_118,
ResetDevicePropValue = 4_119,
MoveObject = 4_121,
CopyObject = 4_122,
GetPartialObject = 4_123,
GetObjectPropValue = 38_915,
SetObjectPropValue = 38_916,
Unknown(u16),
}Expand description
PTP operation codes (commands sent to device).
These codes identify the operation being requested in a PTP command container.
Variants§
GetDeviceInfo = 4_097
Get device information (capabilities, manufacturer, etc.).
OpenSession = 4_098
Open a session with the device.
CloseSession = 4_099
Close the current session.
GetStorageIds = 4_100
Get list of storage IDs.
GetStorageInfo = 4_101
Get information about a storage.
GetNumObjects = 4_102
Get the number of objects in a storage/folder.
GetObjectHandles = 4_103
Get list of object handles.
GetObjectInfo = 4_104
Get information about an object.
GetObject = 4_105
Download an object’s data.
GetThumb = 4_106
Get thumbnail for an object.
DeleteObject = 4_107
Delete an object.
SendObjectInfo = 4_108
Send object metadata (before sending object data).
SendObject = 4_109
Send object data (after SendObjectInfo).
InitiateCapture = 4_110
Initiate image capture on a camera.
GetDevicePropDesc = 4_116
Get device property descriptor.
GetDevicePropValue = 4_117
Get current device property value.
SetDevicePropValue = 4_118
Set device property value.
ResetDevicePropValue = 4_119
Reset device property to default value.
MoveObject = 4_121
Move an object to a different location.
CopyObject = 4_122
Copy an object.
GetPartialObject = 4_123
Get partial object data (range request).
GetObjectPropValue = 38_915
Get the value of an object property (MTP extension).
SetObjectPropValue = 38_916
Set the value of an object property (MTP extension).
Unknown(u16)
Unknown or vendor-specific operation code.
Trait Implementations§
Source§impl Clone for OperationCode
impl Clone for OperationCode
Source§fn clone(&self) -> OperationCode
fn clone(&self) -> OperationCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more