objc2_virtualization/generated/
VZSocketDevice.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    /// Base class representing a socket device in a virtual machine.
10    ///
11    /// VZSocketDevice should not be instantiated directly.
12    ///
13    /// Socket devices are first configured on the VZVirtualMachineConfiguration through a subclass of VZSocketDeviceConfiguration.
14    /// When a VZVirtualMachine is created from the configuration, the socket devices are available through the VZVirtualMachine.socketDevices property.
15    ///
16    /// The real type of VZSocketDevice corresponds to the type used by the configuration.
17    /// For example, a VZVirtioSocketDeviceConfiguration leads to a device of type VZVirtioSocketDevice.
18    ///
19    /// See: VZVirtioSocketDevice
20    ///
21    /// See: VZVirtioSocketDeviceConfiguration
22    ///
23    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzsocketdevice?language=objc)
24    #[unsafe(super(NSObject))]
25    #[derive(Debug, PartialEq, Eq, Hash)]
26    pub struct VZSocketDevice;
27);
28
29unsafe impl NSObjectProtocol for VZSocketDevice {}
30
31impl VZSocketDevice {
32    extern_methods!(
33        #[unsafe(method(new))]
34        #[unsafe(method_family = new)]
35        pub unsafe fn new() -> Retained<Self>;
36
37        #[unsafe(method(init))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40    );
41}