Enum ptp::PtpDataType
[−]
[src]
pub enum PtpDataType { UNDEF, INT8(i8), UINT8(u8), INT16(i16), UINT16(u16), INT32(i32), UINT32(u32), INT64(i64), UINT64(u64), INT128((u64, u64)), UINT128((u64, u64)), AINT8(Vec<i8>), AUINT8(Vec<u8>), AINT16(Vec<i16>), AUINT16(Vec<u16>), AINT32(Vec<i32>), AUINT32(Vec<u32>), AINT64(Vec<i64>), AUINT64(Vec<u64>), AINT128(Vec<(u64, u64)>), AUINT128(Vec<(u64, u64)>), STR(String), }
Variants
UNDEF
INT8(i8)
UINT8(u8)
INT16(i16)
UINT16(u16)
INT32(i32)
UINT32(u32)
INT64(i64)
UINT64(u64)
INT128((u64, u64))
UINT128((u64, u64))
AINT8(Vec<i8>)
AUINT8(Vec<u8>)
AINT16(Vec<i16>)
AUINT16(Vec<u16>)
AINT32(Vec<i32>)
AUINT32(Vec<u32>)
AINT64(Vec<i64>)
AUINT64(Vec<u64>)
AINT128(Vec<(u64, u64)>)
AUINT128(Vec<(u64, u64)>)
STR(String)
Methods
impl PtpDataType
[src]
fn encode(&self) -> Vec<u8>
fn read_type<T: PtpRead>(
kind: u16,
reader: &mut T
) -> Result<PtpDataType, Error>
kind: u16,
reader: &mut T
) -> Result<PtpDataType, Error>
Trait Implementations
impl Debug for PtpDataType
[src]
impl PartialEq for PtpDataType
[src]
fn eq(&self, __arg_0: &PtpDataType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PtpDataType) -> bool
This method tests for !=
.