#[repr(u16)]pub enum PropertyDataType {
Show 13 variants
Undefined = 0,
Int8 = 1,
Uint8 = 2,
Int16 = 3,
Uint16 = 4,
Int32 = 5,
Uint32 = 6,
Int64 = 7,
Uint64 = 8,
Int128 = 9,
Uint128 = 10,
Unknown(u16),
String = 65_535,
}Expand description
PTP property data type codes.
These codes identify the data type of property values in property descriptors.
Variants§
Undefined = 0
Undefined type (0x0000).
Int8 = 1
Signed 8-bit integer (0x0001).
Uint8 = 2
Unsigned 8-bit integer (0x0002).
Int16 = 3
Signed 16-bit integer (0x0003).
Uint16 = 4
Unsigned 16-bit integer (0x0004).
Int32 = 5
Signed 32-bit integer (0x0005).
Uint32 = 6
Unsigned 32-bit integer (0x0006).
Int64 = 7
Signed 64-bit integer (0x0007).
Uint64 = 8
Unsigned 64-bit integer (0x0008).
Int128 = 9
Signed 128-bit integer (0x0009, rarely used).
Uint128 = 10
Unsigned 128-bit integer (0x000A, rarely used).
Unknown(u16)
Unknown type code.
String = 65_535
UTF-16LE string (0xFFFF).
Implementations§
Trait Implementations§
Source§impl Clone for PropertyDataType
impl Clone for PropertyDataType
Source§fn clone(&self) -> PropertyDataType
fn clone(&self) -> PropertyDataType
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 PropertyDataType
impl Debug for PropertyDataType
Source§impl From<PropertyDataType> for u16
impl From<PropertyDataType> for u16
Source§fn from(enum_value: PropertyDataType) -> Self
fn from(enum_value: PropertyDataType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for PropertyDataType
impl From<u16> for PropertyDataType
Source§impl FromPrimitive for PropertyDataType
impl FromPrimitive for PropertyDataType
Source§impl Hash for PropertyDataType
impl Hash for PropertyDataType
Source§impl PartialEq for PropertyDataType
impl PartialEq for PropertyDataType
impl Copy for PropertyDataType
impl Eq for PropertyDataType
impl StructuralPartialEq for PropertyDataType
Auto Trait Implementations§
impl Freeze for PropertyDataType
impl RefUnwindSafe for PropertyDataType
impl Send for PropertyDataType
impl Sync for PropertyDataType
impl Unpin for PropertyDataType
impl UnsafeUnpin for PropertyDataType
impl UnwindSafe for PropertyDataType
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