objc2_virtualization/generated/
VZVirtioSocketDeviceConfiguration.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// Configuration of the Virtio socket device.
11    ///
12    /// This configuration creates a Virtio socket device for the guest which communicates with the host through the Virtio interface.
13    ///
14    /// Only one Virtio socket device can be used per virtual machine.
15    ///
16    /// See: VZVirtioSocketDevice
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvirtiosocketdeviceconfiguration?language=objc)
19    #[unsafe(super(VZSocketDeviceConfiguration, NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(feature = "VZSocketDeviceConfiguration")]
22    pub struct VZVirtioSocketDeviceConfiguration;
23);
24
25#[cfg(feature = "VZSocketDeviceConfiguration")]
26extern_conformance!(
27    unsafe impl NSCopying for VZVirtioSocketDeviceConfiguration {}
28);
29
30#[cfg(feature = "VZSocketDeviceConfiguration")]
31unsafe impl CopyingHelper for VZVirtioSocketDeviceConfiguration {
32    type Result = Self;
33}
34
35#[cfg(feature = "VZSocketDeviceConfiguration")]
36extern_conformance!(
37    unsafe impl NSObjectProtocol for VZVirtioSocketDeviceConfiguration {}
38);
39
40#[cfg(feature = "VZSocketDeviceConfiguration")]
41impl VZVirtioSocketDeviceConfiguration {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46    );
47}
48
49/// Methods declared on superclass `VZSocketDeviceConfiguration`.
50#[cfg(feature = "VZSocketDeviceConfiguration")]
51impl VZVirtioSocketDeviceConfiguration {
52    extern_methods!(
53        #[unsafe(method(new))]
54        #[unsafe(method_family = new)]
55        pub unsafe fn new() -> Retained<Self>;
56    );
57}