pub unsafe trait VZUSBDevice: NSObjectProtocol {
// Provided methods
unsafe fn usbController(&self) -> Option<Retained<VZUSBController>>
where Self: Sized + Message { ... }
unsafe fn uuid(&self) -> Retained<NSUUID>
where Self: Sized + Message { ... }
}
Available on crate feature
VZUSBDevice
only.Expand description
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
Provided Methods§
Sourceunsafe fn usbController(&self) -> Option<Retained<VZUSBController>>
Available on crate feature VZUSBController
only.
unsafe fn usbController(&self) -> Option<Retained<VZUSBController>>
VZUSBController
only.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.
Trait Implementations§
Source§impl ProtocolType for dyn VZUSBDevice
impl ProtocolType for dyn VZUSBDevice
impl<T> ImplementedBy<T> for dyn VZUSBDevice
Implementations on Foreign Types§
impl<T> VZUSBDevice for ProtocolObject<T>where
T: ?Sized + VZUSBDevice,
Implementors§
impl VZUSBDevice for VZUSBMassStorageDevice
Available on crate feature
VZUSBMassStorageDevice
only.