objc2_virtualization/generated/
VZVirtioNetworkDeviceConfiguration.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 a paravirtualized network device of type Virtio Network Device.
11    ///
12    /// The communication channel used on the host is defined through the attachment. It is set with the VZNetworkDeviceConfiguration.attachment property.
13    ///
14    /// The configuration is only valid with valid MACAddress and attachment.
15    ///
16    ///
17    /// See: VZVirtualMachineConfiguration.networkDevices
18    ///
19    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvirtionetworkdeviceconfiguration?language=objc)
20    #[unsafe(super(VZNetworkDeviceConfiguration, NSObject))]
21    #[derive(Debug, PartialEq, Eq, Hash)]
22    #[cfg(feature = "VZNetworkDeviceConfiguration")]
23    pub struct VZVirtioNetworkDeviceConfiguration;
24);
25
26#[cfg(feature = "VZNetworkDeviceConfiguration")]
27extern_conformance!(
28    unsafe impl NSCopying for VZVirtioNetworkDeviceConfiguration {}
29);
30
31#[cfg(feature = "VZNetworkDeviceConfiguration")]
32unsafe impl CopyingHelper for VZVirtioNetworkDeviceConfiguration {
33    type Result = Self;
34}
35
36#[cfg(feature = "VZNetworkDeviceConfiguration")]
37extern_conformance!(
38    unsafe impl NSObjectProtocol for VZVirtioNetworkDeviceConfiguration {}
39);
40
41#[cfg(feature = "VZNetworkDeviceConfiguration")]
42impl VZVirtioNetworkDeviceConfiguration {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47    );
48}
49
50/// Methods declared on superclass `VZNetworkDeviceConfiguration`.
51#[cfg(feature = "VZNetworkDeviceConfiguration")]
52impl VZVirtioNetworkDeviceConfiguration {
53    extern_methods!(
54        #[unsafe(method(new))]
55        #[unsafe(method_family = new)]
56        pub unsafe fn new() -> Retained<Self>;
57    );
58}