Trait VZUSBDevice

Source
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§

Source

unsafe fn usbController(&self) -> Option<Retained<VZUSBController>>
where Self: Sized + Message,

Available on crate feature 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.

Source

unsafe fn uuid(&self) -> Retained<NSUUID>
where Self: Sized + Message,

Device UUID.

Device UUID from device configuration objects that conform to VZUSBDeviceConfiguration.

See: VZUSBDeviceConfiguration

Trait Implementations§

Source§

impl ProtocolType for dyn VZUSBDevice

Source§

const NAME: &'static str = "VZUSBDevice"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn VZUSBDevice
where T: ?Sized + Message + VZUSBDevice,

Implementations on Foreign Types§

Source§

impl<T> VZUSBDevice for ProtocolObject<T>
where T: ?Sized + VZUSBDevice,

Implementors§

Source§

impl VZUSBDevice for VZUSBMassStorageDevice

Available on crate feature VZUSBMassStorageDevice only.