pub struct DeviceInfo<'a> {Show 14 fields
pub standard_version: u16,
pub vendor_extension_id: u32,
pub vendor_extension_version: u16,
pub vendor_extension_desc: &'a str,
pub functional_mode: u16,
pub operations_supported: &'a [u16],
pub events_supported: &'a [u16],
pub device_properties_supported: &'a [u16],
pub capture_formats: &'a [u16],
pub playback_formats: &'a [u16],
pub manufacturer: &'a str,
pub model: &'a str,
pub device_version: &'a str,
pub serial_number: &'a str,
}Expand description
MTP DeviceInfo dataset returned by op::GET_DEVICE_INFO.
Fields§
§standard_version: u16PTP standard version (typically STANDARD_VERSION_1_0).
vendor_extension_id: u32Vendor extension ID (typically VENDOR_EXT_ID_MICROSOFT_MTP).
vendor_extension_version: u16Vendor extension version (typically VENDOR_EXT_VERSION_MTP_1_0).
vendor_extension_desc: &'a strVendor extension description (typically VENDOR_EXT_DESC_MICROSOFT_MTP).
functional_mode: u16Functional mode (0x0000 for standard mode).
operations_supported: &'a [u16]List of supported op operation codes.
events_supported: &'a [u16]List of supported event event codes.
device_properties_supported: &'a [u16]List of supported dev_prop device property codes.
capture_formats: &'a [u16]List of format codes the device can capture.
playback_formats: &'a [u16]List of format codes the device can store/play back.
manufacturer: &'a strManufacturer string.
model: &'a strModel name string.
device_version: &'a strFirmware/device version string.
serial_number: &'a strSerial number string.
Implementations§
Source§impl<'a> DeviceInfo<'a>
impl<'a> DeviceInfo<'a>
Trait Implementations§
Source§impl<'a> Clone for DeviceInfo<'a>
impl<'a> Clone for DeviceInfo<'a>
impl<'a> Copy for DeviceInfo<'a>
Source§impl<'a> Debug for DeviceInfo<'a>
impl<'a> Debug for DeviceInfo<'a>
Auto Trait Implementations§
impl<'a> Forget for DeviceInfo<'a>
impl<'a> Freeze for DeviceInfo<'a>
impl<'a> Move for DeviceInfo<'a>
impl<'a> RefUnwindSafe for DeviceInfo<'a>
impl<'a> Send for DeviceInfo<'a>
impl<'a> Sync for DeviceInfo<'a>
impl<'a> Unpin for DeviceInfo<'a>
impl<'a> UnsafeUnpin for DeviceInfo<'a>
impl<'a> UnwindSafe for DeviceInfo<'a>
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