Trait VZUSBDeviceConfiguration

Source
pub unsafe trait VZUSBDeviceConfiguration: NSObjectProtocol {
    // Provided methods
    unsafe fn uuid(&self) -> Retained<NSUUID>
       where Self: Sized + Message { ... }
    unsafe fn setUuid(&self, uuid: &NSUUID)
       where Self: Sized + Message { ... }
}
Available on crate feature VZUSBDeviceConfiguration only.
Expand description

Protocol for USB Device configuration.

Classes that conform to this protocol represent hot-pluggable USB device configurations. VZUSBDeviceConfiguration protocol should not be used with objects outside of Virtualization framework. This protocol only describes capabilities of Virtualization framework objects.

See: VZUSBMassStorageDeviceConfiguration

See also Apple’s documentation

Provided Methods§

Source

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

Device UUID.

Device UUID is auto-generated. Before restoring the virtual machine, it should be replaced with the uuid of a previously attached device when the virtual machine was saved.

Source

unsafe fn setUuid(&self, uuid: &NSUUID)
where Self: Sized + Message,

Setter for uuid.

Trait Implementations§

Source§

impl ProtocolType for dyn VZUSBDeviceConfiguration

Source§

const NAME: &'static str = "VZUSBDeviceConfiguration"

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 VZUSBDeviceConfiguration

Implementations on Foreign Types§

Source§

impl<T> VZUSBDeviceConfiguration for ProtocolObject<T>

Implementors§

Source§

impl VZUSBDeviceConfiguration for VZUSBMassStorageDeviceConfiguration

Available on crate feature VZUSBMassStorageDeviceConfiguration only.