objc2_virtualization/generated/
VZXHCIController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// Class representing a USB XHCI controller in a virtual machine.
10    ///
11    /// VZXHCIController should not be instantiated directly.
12    /// In order to create a runtime VZXHCIController object, the usbControllers property of
13    /// VZVirtualMachineConfiguration object needs to be populated with VZXHCIControllerConfiguration object.
14    ///
15    /// See: VZUSBController
16    ///
17    /// See: VZXHCIControllerConfiguration
18    ///
19    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzxhcicontroller?language=objc)
20    #[unsafe(super(VZUSBController, NSObject))]
21    #[derive(Debug, PartialEq, Eq, Hash)]
22    #[cfg(feature = "VZUSBController")]
23    pub struct VZXHCIController;
24);
25
26#[cfg(feature = "VZUSBController")]
27extern_conformance!(
28    unsafe impl NSObjectProtocol for VZXHCIController {}
29);
30
31#[cfg(feature = "VZUSBController")]
32impl VZXHCIController {
33    extern_methods!();
34}
35
36/// Methods declared on superclass `VZUSBController`.
37#[cfg(feature = "VZUSBController")]
38impl VZXHCIController {
39    extern_methods!(
40        #[unsafe(method(new))]
41        #[unsafe(method_family = new)]
42        pub unsafe fn new() -> Retained<Self>;
43
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47    );
48}