1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_protocol!(
/// Protocol representing a USB Device in a virtual machine.
///
/// Classes that conform to this protocol represent hot-pluggable USB devices.
/// VZUSBDevice protocol should not be used with objects outside of Virtualization framework.
/// This protocol only describes capabilities of Virtualization framework objects.
///
/// See: VZUSBMassStorageDevice
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzusbdevice?language=objc)
pub unsafe trait VZUSBDevice: NSObjectProtocol {
#[cfg(feature = "VZUSBController")]
/// USB controller that the device is attached to.
///
/// If a USB device object that conforms to this protocol is currently attached to a USB controller, this
/// property includes a pointer to the USB controller object that the device is attached to.
/// Otherwise, it contains nil.
#[unsafe(method(usbController))]
#[unsafe(method_family = none)]
unsafe fn usbController(&self) -> Option<Retained<VZUSBController>>;
/// Device UUID.
///
/// Device UUID from device configuration objects that conform to `VZUSBDeviceConfiguration`.
///
/// See: VZUSBDeviceConfiguration
#[unsafe(method(uuid))]
#[unsafe(method_family = none)]
unsafe fn uuid(&self) -> Retained<NSUUID>;
}
);